/**
 * Shared rich-content styles — matches form.html editor output on blog/docs pages.
 */
.kiwis-content-body {
  font-family: 'Roboto', 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #202124;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.kiwis-content-body pre,
.kiwis-content-body pre code {
  word-wrap: normal;
  overflow-wrap: normal;
}

.kiwis-content-body::after {
  content: '';
  display: block;
  clear: both;
}

.kiwis-content-body h1 { font-size: 28px; font-weight: 700; margin: 16px 0 8px; color: #0f172a; line-height: 1.3; }
.kiwis-content-body h2 { font-size: 22px; font-weight: 600; margin: 14px 0 6px; color: #0f172a; line-height: 1.3; }
.kiwis-content-body h3 { font-size: 18px; font-weight: 600; margin: 12px 0 4px; color: #0f172a; line-height: 1.3; }
.kiwis-content-body h4 { font-size: 16px; font-weight: 600; margin: 12px 0 4px; color: #0f172a; line-height: 1.3; }
.kiwis-content-body h5 { font-size: 14px; font-weight: 600; margin: 10px 0 4px; color: #0f172a; line-height: 1.3; }
.kiwis-content-body h6 { font-size: 13px; font-weight: 600; margin: 10px 0 4px; color: #0f172a; line-height: 1.3; }
.kiwis-content-body > :first-child { margin-top: 0; }

.kiwis-content-body p { min-height: 1em; margin: 0 0 12px; }
.kiwis-content-body b,
.kiwis-content-body strong { font-weight: 700; color: #202124; }

.kiwis-content-body a { color: #1a73e8; text-decoration: underline; }
.kiwis-content-body a:hover { color: #1557b0; }

.kiwis-content-body ul,
.kiwis-content-body ol { padding-left: 24px; margin: 0 0 12px; }
.kiwis-content-body li { margin-bottom: 4px; }

.kiwis-content-body blockquote {
  border-left: 4px solid #ff6d00;
  margin: 12px 0;
  padding: 8px 16px;
  color: #5f6368;
  font-style: italic;
  background: #fff8f5;
}
.kiwis-content-body blockquote.highlight-block {
  border-left: none !important;
  padding: 16px 24px !important;
  font-style: italic !important;
  border-radius: 6px !important;
  margin: 12px 0 !important;
  color: #1e293b !important;
}

.kiwis-content-body hr {
  border: 0;
  border-top: 1px solid #dadce0;
  margin: 14px 0;
}

.kiwis-content-body table {
  border-collapse: collapse;
  width: 100%;
  margin: 12px 0;
  table-layout: fixed;
}

.kiwis-content-body td,
.kiwis-content-body th {
  border: 1px solid #dadce0;
  padding: 8px 12px;
  word-break: break-word;
  overflow-wrap: anywhere;
  vertical-align: top;
}

.kiwis-content-body th {
  font-weight: 600;
  background: #f8f9fa;
}

.kiwis-content-body pre {
  background: #f8f9fa;
  border: 1px solid #dadce0;
  border-radius: 4px;
  padding: 12px;
  overflow-x: auto;
  white-space: pre;
  word-break: normal;
  overflow-wrap: normal;
  tab-size: 4;
  font-size: 14px;
  line-height: 1.6;
  margin: 12px 0;
}

.kiwis-content-body pre code {
  display: block;
  white-space: pre;
  word-break: normal;
  overflow-wrap: normal;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

.kiwis-content-body code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.92em;
}

.kiwis-content-body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 8px 0;
  display: block;
}

.kiwis-content-body .media-image,
.kiwis-content-body .media-video {
  margin: 14px 0;
  position: relative;
  border-radius: 6px;
}

.kiwis-content-body .media-image img,
.kiwis-content-body .media-video video,
.kiwis-content-body .media-video iframe {
  width: 100%;
  border-radius: 6px;
  display: block;
  margin: 0;
}

.kiwis-content-body .media-image.size-small,
.kiwis-content-body .media-video.size-small { max-width: 220px; }
.kiwis-content-body .media-image.size-medium,
.kiwis-content-body .media-video.size-medium { max-width: 360px; }
.kiwis-content-body .media-image.size-large,
.kiwis-content-body .media-video.size-large { max-width: 540px; }
.kiwis-content-body .media-image.size-xlarge,
.kiwis-content-body .media-video.size-xlarge { max-width: 680px; }
.kiwis-content-body .media-image.size-original,
.kiwis-content-body .media-video.size-original { max-width: 100%; }

.kiwis-content-body .media-image.align-center,
.kiwis-content-body .media-video.align-center {
  display: block;
  clear: both;
  margin-left: auto;
  margin-right: auto;
}

.kiwis-content-body .media-image.align-left,
.kiwis-content-body .media-video.align-left {
  float: left;
  margin-right: 16px;
  margin-left: 0;
  clear: left;
}

.kiwis-content-body .media-image.align-right,
.kiwis-content-body .media-video.align-right {
  float: right;
  margin-left: 16px;
  margin-right: 0;
  clear: right;
}

.kiwis-content-body .media-image figcaption {
  margin-top: 8px;
  color: #5f6368;
  font-size: 13px;
  text-align: center;
}

.kiwis-content-body .media-image figcaption:empty {
  display: none;
}

.kiwis-content-body .media-video .video-frame {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}

.kiwis-content-body .media-video.youtube .video-frame {
  padding-bottom: 56.25%;
  height: 0;
}

.kiwis-content-body .media-video.youtube .video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.kiwis-content-body .media-delete-badge {
  display: none !important;
}

/* Public article canvas — matches form.html #editor-page + #editor padding */
.kiwis-public-article {
  width: 100%;
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
  padding: 32px 40px;
  font-family: 'Roboto', 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #202124;
  background: #fff;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .kiwis-public-article {
    padding: 24px 20px;
    max-width: 95vw;
  }
}

.blog-content-body.kiwis-public-article,
.doc-content-body.kiwis-public-article {
  font-size: 15px;
  line-height: 1.7;
  color: #202124;
}

.kiwis-public-article > .kiwis-content-body {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Legacy structured sections still center editor-width content */
.blog-content-body > .kiwis-content-body,
.doc-content-body > .kiwis-content-body {
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}
