/*
 * Custom briefing sections — the ready-made blocks Clippy builds with (KS-Brain role-brief.md, "Custom sections",
 * 2026-11-24). The only classes a section may carry are cs-* (arc's guard drops every other class), so this file is
 * the whole design vocabulary. Every block works on a phone without help: grids wrap, images shrink.
 * Also loaded by Zen's preview of a proposed section (https://briefing.keysearch.com/custom-sections.css).
 */

.cs-body {
  color: #4b5262;
  font-size: 16px;
  line-height: 26px;
  max-width: 100%;
  overflow-x: auto;
  overflow-wrap: anywhere;
}
@media (min-width: 768px) {
  .cs-body { font-size: 17px; line-height: 30px; }
}
.cs-body > * + * { margin-top: 14px; }
.cs-body h3 { color: #0d203f; font-size: 20px; line-height: 28px; font-weight: 600; margin: 0; }
.cs-body h4 { color: #0d203f; font-size: 17px; line-height: 26px; font-weight: 600; margin: 0; }
.cs-body p { margin: 0; }
.cs-body ul, .cs-body ol { margin: 0; padding-left: 22px; }
.cs-body ul { list-style: disc; }
.cs-body ol { list-style: decimal; }
.cs-body li + li { margin-top: 6px; }
.cs-body strong, .cs-body b { color: #0d203f; font-weight: 600; }
.cs-body a { color: #1f8fa0; text-decoration: underline; text-underline-offset: 3px; }
.cs-body img { max-width: 100%; height: auto; }
.cs-body hr { border: 0; border-top: 1px solid #e5e7eb; margin: 24px 0; }
.cs-body table { width: 100%; border-collapse: collapse; }
.cs-body th, .cs-body td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #eceef2; vertical-align: top; }
.cs-body th { color: #0d203f; font-weight: 600; }

/* A lead line, centred and soft — like the intro under other section titles. */
.cs-lead { color: #999da6; font-size: 17px; line-height: 28px; text-align: center; max-width: 880px; margin-left: auto; margin-right: auto; }
@media (min-width: 768px) { .cs-lead { font-size: 18px; line-height: 34px; } }
.cs-center { text-align: center; }
.cs-muted { color: #999da6; }
.cs-small { font-size: 14px; line-height: 22px; }

/* Cards in a row; they wrap to one per line on a phone. */
.cs-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.cs-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 20px 22px;
}
.cs-card > * + * { margin-top: 8px; }
.cs-card h3, .cs-card h4 { font-size: 17px; line-height: 24px; }

/* Big numbers with a label under each. */
.cs-numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.cs-number { color: #0d203f; font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -0.4px; }
@media (min-width: 768px) { .cs-number { font-size: 34px; line-height: 40px; } }
.cs-number-label { color: #999da6; font-size: 14px; line-height: 20px; margin-top: 4px; }

/* A row of logos (images uploaded in the editor); they wrap. */
.cs-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px 40px; padding: 8px 0; }
.cs-logos img { max-height: 44px; max-width: 140px; width: auto; height: auto; object-fit: contain; }
.cs-logos figure { margin: 0; text-align: center; }
.cs-logos figcaption { color: #999da6; font-size: 12px; line-height: 16px; margin-top: 6px; }

/* The dark banner, like the page's navy cards. */
.cs-banner-dark {
  background: #0d203f;
  color: #ffffff;
  border-radius: 20px;
  padding: 24px 20px;
}
@media (min-width: 768px) { .cs-banner-dark { border-radius: 30px; padding: 48px 64px; } }
.cs-banner-dark h3, .cs-banner-dark h4, .cs-banner-dark strong, .cs-banner-dark b, .cs-banner-dark .cs-number { color: #ffffff; }
.cs-banner-dark .cs-number-label, .cs-banner-dark .cs-muted { color: rgba(255, 255, 255, 0.65); }
.cs-banner-dark a { color: #7fd4df; }

/* A pull quote. */
.cs-quote { border-left: 3px solid #28adbe; padding-left: 16px; color: #0d203f; font-style: italic; }

/* A link that looks like the page's buttons. */
.cs-button {
  display: inline-block;
  background: #0d203f;
  color: #ffffff !important;
  text-decoration: none !important;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 500;
  font-size: 15px;
  line-height: 22px;
}

/* The editor: a picture is replaced by clicking it. */
.cs-editing img { cursor: pointer; outline: 1px dashed #c9ccd3; outline-offset: 2px; }
.cs-editing img:hover { outline-color: #2693e6; }
