.cip-page-hero h1 {
  font-size: clamp(32px, 4.5vw, 56px);
  overflow-wrap: anywhere;
}

.cip-page-hero .section-kicker {
  color: #91d7fa;
}

.cip-page-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.cip-page-breadcrumb a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cip-page-breadcrumb a:hover {
  color: #91d7fa;
}

.cip-page-body {
  background: var(--bg-light);
  padding: 56px 0 90px;
}

.cip-page-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 56px);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.06);
}

/* Low specificity lets saved GrapesJS classes and IDs override these defaults. */
.cip-page-content {
  color: var(--text);
  font-size: 17px;
  line-height: 1.85;
  overflow-wrap: anywhere;
  display: flow-root;
}

.cip-page-content :where(h1, h2, h3, h4, h5, h6) {
  color: var(--primary);
  font-weight: 700;
  line-height: 1.3;
  margin: 1.5em 0 0.6em;
}

.cip-page-content :where(h1) { font-size: clamp(28px, 3.5vw, 40px); }
.cip-page-content :where(h2) { font-size: clamp(25px, 3vw, 32px); }
.cip-page-content :where(h3) { font-size: 24px; }
.cip-page-content :where(h4) { font-size: 21px; }
.cip-page-content :where(h5, h6) { font-size: 18px; }

.cip-page-content :where(p, ul, ol, dl, figure, pre, table) {
  margin: 0 0 1.4em;
}

.cip-page-content :where(ul, ol) {
  padding-left: 1.5em;
}

.cip-page-content :where(li) {
  margin-bottom: 0.45em;
}

.cip-page-content :where(li > ul, li > ol) {
  margin-top: 0.45em;
  margin-bottom: 0;
}

.cip-page-content :where(a:not([class])) {
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cip-page-content :where(a:not([class]):hover) {
  color: var(--accent);
}

.cip-page-content :where(blockquote) {
  background: #eef4fb;
  border-left: 4px solid var(--accent);
  border-radius: 0 16px 16px 0;
  color: var(--primary);
  padding: 24px;
  margin: 28px 0;
  font-size: 1.1em;
}

.cip-page-content :where(img, video, iframe) {
  max-width: 100%;
}

.cip-page-content :where(img, video) {
  height: auto;
}

.cip-page-content :where(figcaption) {
  color: var(--muted);
  font-size: 14px;
  margin-top: 10px;
}

.cip-page-content :where(table) {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.cip-page-content :where(th, td) {
  border: 1px solid var(--border);
  padding: 12px 16px;
  text-align: left;
}

.cip-page-content :where(th) {
  background: var(--bg-light);
  color: var(--primary);
  font-weight: 700;
}

.cip-page-content :where(pre) {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
}

.cip-page-content :where(hr) {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

.cip-page-content > :where(:first-child),
.cip-page-content :where(blockquote) > :where(:first-child) {
  margin-top: 0;
}

.cip-page-content > :where(:last-child),
.cip-page-content :where(blockquote) > :where(:last-child) {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .cip-page-hero {
    padding: 130px 0 48px;
  }

  .cip-page-body {
    padding: 28px 0 48px;
  }

  .cip-page-card {
    border-radius: 18px;
    padding: 24px 20px;
  }

  .cip-page-content {
    font-size: 16px;
  }
}
