/* CDN monitoring: page-only blocks (capability groups, logo strip, quote grid, blog cards) */

.cdn-hero { padding-bottom: 24px; }
.cdn-first { padding-top: 136px; }
.cdn-hero::before { top: 60px; height: 460px; width: 1000px; }

/* ───── Capability groups: heading left, two cards right ───── */
.cdn-groups { display: flex; flex-direction: column; gap: 96px; }
.cdn-group { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: start; }
.cdn-group-head { position: sticky; top: 110px; }
.cdn-group-num { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--fg-3); margin-bottom: 18px; }
.cdn-group-head .eyebrow { display: block; margin-bottom: 16px; }
.cdn-group-head h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -0.03em; font-weight: 560; }
.cdn-group-items { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.cdn-item { display: flex; flex-direction: column; padding: 32px; }
.cdn-item h4 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; margin-bottom: 12px; }
.cdn-item p { flex: 1; font-size: 15px; line-height: 1.65; color: var(--fg-2); }
.cdn-item .link { margin-top: 22px; font-size: 14.5px; }

/* ───── Logo strip ───── */
.cdn-logos { list-style: none; margin: 0 0 56px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 36px; }
.cdn-logos img { display: block; height: 56px; width: auto; }
.cdn-logos img, .cdn-quote-logo, .cdn-logo-light { filter: var(--silhouette); opacity: .72; }

/* ───── Quote grid ───── */
.cdn-quotes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.cdn-quote { display: flex; flex-direction: column; margin: 0; padding: 28px; }
.cdn-quote-logo { height: 40px; width: auto; align-self: flex-start; margin: -6px 0 18px -4px; }
.cdn-quote blockquote { font-size: 15px; line-height: 1.6; color: var(--fg); }
.cdn-quote figcaption { margin: 18px 0 22px; font-size: 13.5px; color: var(--fg-2); }
.cdn-quote figcaption b { display: block; color: var(--fg); font-weight: 500; }
.cdn-quote-stats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.cdn-quote-stats b { display: block; font-size: 24px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; color: var(--accent); }
.cdn-quote-stats span { display: block; margin-top: 8px; font-size: 12.5px; line-height: 1.45; color: var(--fg-2); }
.cdn-quote .link { margin-top: 22px; font-size: 14px; }

/* ───── Blog cards ───── */
.cdn-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cdn-post { display: flex; flex-direction: column; padding: 0; }
.cdn-post-img { aspect-ratio: 1024 / 536; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-1); }
.cdn-post-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.cdn-post:hover .cdn-post-img img { transform: scale(1.03); }
.cdn-post-body { flex: 1; display: flex; flex-direction: column; padding: 26px 28px 28px; }
.cdn-post-meta { font-family: var(--mono); font-size: 12.5px; color: var(--accent); }
.cdn-post-meta i { font-style: normal; margin: 0 8px; color: var(--fg-3); }
.cdn-post h3 { margin-top: 14px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.cdn-post p { flex: 1; margin-top: 12px; font-size: 14.5px; line-height: 1.6; color: var(--fg-2); }
.cdn-post .link { margin-top: 20px; font-size: 14px; }

/* ───── Final stats ───── */
.cdn-facts b { font-size: 34px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; color: var(--accent); }
.final .fine { text-align: center; }

/* ───── Responsive ───── */
@media (max-width: 1120px) {
  .cdn-quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cdn-group { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .cdn-group-head { position: static; max-width: 640px; }
}
@media (max-width: 960px) {
  .cdn-groups { gap: 72px; }
  .cdn-posts { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; }
  .cdn-logos { gap: 4px 24px; }
  .cdn-logos img { height: 48px; }
}
@media (max-width: 640px) {
  .cdn-group-items { grid-template-columns: minmax(0, 1fr); }
  .cdn-hero::before { width: 640px; height: 420px; }
  /* quotes become a swipeable row instead of an eight-card stack */
  .cdn-quotes { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 24px; margin: 16px -24px 0; padding: 0 24px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .cdn-quotes::-webkit-scrollbar { display: none; }
  .cdn-quote { scroll-snap-align: start; }
  .cdn-quote:hover { transform: none; }
  .cdn-item, .cdn-quote { padding: 26px; }
  .cdn-logos img { height: 40px; }
}
@media (max-width: 560px) {
  .cdn-quotes { scroll-padding: 0 20px; margin: 16px -20px 0; padding: 0 20px 8px; }
}

/* Light skin: small green text uses --mint (≥4.5:1 on the light surfaces); --accent stays for dots, fills,
   borders and large numbers. Light only, so the dark skin is unchanged. */
:root[data-theme="light"] .cdn-post-meta { color: var(--mint); }
