/* Native singles only (this file is not enqueued on kod_html / pages). */
.c-blog-post-img {
  padding-bottom: 0 !important;
}
.eb-native-single .c-blog-post-img {
  padding-bottom: 0 !important;
  position: relative;
  overflow: hidden;
  background-image: none !important;
}
.eb-native-single .c-blog-post-img > img.c-blog-post-photo,
.c-blog-post-img > img.c-blog-post-photo {
  position: static;
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: auto;
  object-fit: cover;
  object-position: center;
  border: 0;
}
.eb-native-single .c-blog-post-date time {
  color: inherit;
  font-size: inherit;
}
.eb-native-single .c-eb-article-content h2,
.eb-native-single .c-eb-article-content h3 {
  scroll-margin-top: 100px;
}
.eb-native-single .c-eb-article-content a[data-hs-anchor]:empty,
.eb-native-single .c-eb-article-content a[id]:empty {
  display: block;
  height: 0;
  overflow: hidden;
  scroll-margin-top: 100px;
}

/* HubSpot article column is p/h2/h3/ul/ol at 80%. Headings it omitted (h4–h6, hr, notes) sat full-bleed. */
.eb-native-single:not(.eb-native-custom-article) .c-blog-post-body h4,
.eb-native-single:not(.eb-native-custom-article) .c-blog-post-body h5,
.eb-native-single:not(.eb-native-custom-article) .c-blog-post-body h6,
.eb-native-single:not(.eb-native-custom-article) .c-blog-post-body hr,
.eb-native-single:not(.eb-native-custom-article) .c-blog-post-body .c-eb-note,
.eb-native-single:not(.eb-native-custom-article) .c-blog-post-body iframe,
.eb-native-single:not(.eb-native-custom-article) .c-blog-post-body .c-eb-table-wrap {
  margin-left: auto;
  margin-right: auto;
  width: 80%;
  max-width: 100%;
  box-sizing: border-box;
}
.eb-native-single .c-blog-post-body h5,
.eb-native-single .c-blog-post-body .c-eb-note {
  font-size: 16px;
  font-weight: normal;
  line-height: 1.6;
  color: #444444;
}
.eb-native-single .c-blog-post-body iframe {
  display: block;
  max-width: 100%;
}

/* In-article HubSpot CTA image (Free Trial). Stays in the 80% column via parent p. */
.eb-native-single .c-blog-post-body .hs-cta-wrapper {
  display: block;
}
.eb-native-single .c-blog-post-body .hs-cta-img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

/* Leftover HubSpot floats / half-width columns inside the article. */
.eb-native-single .c-eb-article-content::after {
  content: "";
  display: table;
  clear: both;
}
.eb-native-single .c-blog-post-body .pull-left,
.eb-native-single .c-blog-post-body .pull-right,
.eb-native-single .c-blog-post-body .hs-featured-image {
  float: none !important;
  margin: 0 0 1em !important;
  max-width: 100% !important;
}

/* Tables: one CSS layer for all native posts. Do not use height:auto on table (collapses rows). */
.eb-native-single .c-eb-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.eb-native-single:not(.eb-native-custom-article) .c-blog-post-body table {
  margin-left: auto;
  margin-right: auto;
  width: 80% !important;
  max-width: 100%;
  height: unset !important;
  border-collapse: collapse;
  table-layout: auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.eb-native-single:not(.eb-native-custom-article) .c-blog-post-body .c-eb-table-wrap table {
  width: 100% !important;
  max-width: none;
  margin: 0;
}
.eb-native-single .c-blog-post-body th,
.eb-native-single .c-blog-post-body td {
  padding: 12px 14px;
  border: 1px solid #c9e6eb;
  vertical-align: top;
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: normal;
  height: unset !important;
  width: auto !important;
}
.eb-native-single .c-blog-post-body th {
  background: #eef8fa;
  font-weight: 700;
}
/* HubSpot .c-blog-post-body p { width:80% } also hits paragraphs nested in cells. */
.eb-native-single .c-blog-post-body th p,
.eb-native-single .c-blog-post-body td p,
.eb-native-single .c-blog-post-body th ul,
.eb-native-single .c-blog-post-body td ul,
.eb-native-single .c-blog-post-body th ol,
.eb-native-single .c-blog-post-body td ol,
.eb-native-single .c-blog-post-body th h2,
.eb-native-single .c-blog-post-body td h2,
.eb-native-single .c-blog-post-body th h3,
.eb-native-single .c-blog-post-body td h3 {
  width: 100%;
  max-width: none;
  margin: 0;
}

@media (max-width: 767px) {
  .eb-native-single:not(.eb-native-custom-article) .c-blog-post-body table,
  .eb-native-single:not(.eb-native-custom-article) .c-blog-post-body .c-eb-table-wrap,
  .eb-native-single:not(.eb-native-custom-article) .c-blog-post-body h4,
  .eb-native-single:not(.eb-native-custom-article) .c-blog-post-body h5,
  .eb-native-single:not(.eb-native-custom-article) .c-blog-post-body h6,
  .eb-native-single:not(.eb-native-custom-article) .c-blog-post-body hr,
  .eb-native-single:not(.eb-native-custom-article) .c-blog-post-body .c-eb-note {
    width: 100%;
  }
}

/*
 * Custom kod_html articles (924 MTD + 105 beginners, etc.): extract dropped the in-page
 * <style> (720px column, CTA boxes). Keep HubSpot hero unless this is the MTD outlier.
 */
.eb-native-single.eb-native-custom-article:has(.c-eb-mtd-cta) .c-blog-post {
  display: none;
}
.eb-native-single.eb-native-custom-article:has(.c-eb-mtd-cta) .c-blog-post-body {
  padding-top: 24px;
}
.eb-native-single.eb-native-custom-article .c-blog-post-body [id] {
  scroll-margin-top: 116px;
}
.eb-native-single.eb-native-custom-article .c-blog-post-body .c-eb-article-content {
  max-width: 720px;
  margin: 0 auto;
  color: #252525;
  font-size: 18px;
  line-height: 1.7;
  overflow-wrap: break-word;
}
.eb-native-single.eb-native-custom-article .c-blog-post-body p,
.eb-native-single.eb-native-custom-article .c-blog-post-body h1,
.eb-native-single.eb-native-custom-article .c-blog-post-body h2,
.eb-native-single.eb-native-custom-article .c-blog-post-body h3,
.eb-native-single.eb-native-custom-article .c-blog-post-body ol,
.eb-native-single.eb-native-custom-article .c-blog-post-body ul,
.eb-native-single.eb-native-custom-article .c-blog-post-body table,
.eb-native-single.eb-native-custom-article .c-blog-post-body .c-eb-table-wrap {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin-left: 0;
  margin-right: 0;
}
.eb-native-single.eb-native-custom-article .c-blog-post-body p {
  margin-top: 0;
  margin-bottom: 20px;
  line-height: 1.7;
}
.eb-native-single.eb-native-custom-article .c-blog-post-body h1 {
  margin: 0 0 24px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
}
.eb-native-single.eb-native-custom-article .c-blog-post-body h2 {
  margin: 48px 0 18px;
  font-family: inherit;
  font-size: clamp(1.65rem, 3vw, 2rem);
  line-height: 1.25;
}
.eb-native-single.eb-native-custom-article .c-blog-post-body h3 {
  margin: 32px 0 14px;
  font-family: inherit;
  font-size: 1.25rem;
  line-height: 1.35;
}
.eb-native-single.eb-native-custom-article:has(.c-eb-mtd-cta) .c-blog-post-body h1,
.eb-native-single.eb-native-custom-article:has(.c-eb-mtd-cta) .c-blog-post-body h2,
.eb-native-single.eb-native-custom-article:has(.c-eb-mtd-cta) .c-blog-post-body h3 {
  color: #222222;
}
.eb-native-single.eb-native-custom-article .c-blog-post-body ol,
.eb-native-single.eb-native-custom-article .c-blog-post-body ul {
  margin: 0 0 26px;
  padding-left: 1.5em;
  list-style-position: outside;
}
.eb-native-single.eb-native-custom-article .c-blog-post-body li {
  display: list-item;
  margin: 0 0 10px;
  line-height: 1.65;
}
.eb-native-single.eb-native-custom-article .c-blog-post-body a {
  color: #006f85;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.eb-native-single.eb-native-custom-article .c-blog-post-body a:hover,
.eb-native-single.eb-native-custom-article .c-blog-post-body a:focus {
  color: #00596b;
  text-decoration-thickness: 2px;
}
.eb-native-single.eb-native-custom-article .c-blog-post-body a:focus-visible {
  outline: 3px solid #1b1b1b;
  outline-offset: 3px;
}
.eb-native-single.eb-native-custom-article .c-eb-updated {
  margin-bottom: 18px;
  color: #028ca6;
  font-size: 16px;
}
.eb-native-single.eb-native-custom-article .c-eb-table-wrap {
  margin: 4px 0 28px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.eb-native-single.eb-native-custom-article .c-blog-post-body table {
  min-width: 600px;
  width: 100% !important;
  height: unset !important;
  border-collapse: collapse;
}
.eb-native-single.eb-native-custom-article .c-eb-mtd-cta {
  margin: 36px 0;
  padding: 28px;
  border: 1px solid #bfe3c6;
  border-radius: 12px;
  background: #f1faf3;
  text-align: center;
}
.eb-native-single.eb-native-custom-article .c-eb-mtd-cta h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
}
.eb-native-single.eb-native-custom-article .c-eb-mtd-cta p {
  margin-bottom: 20px;
}
.eb-native-single.eb-native-custom-article .c-eb-mtd-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 15px 28px;
  border-radius: 40px;
  background: #76e36e;
  color: #1b1b1b;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}
.eb-native-single.eb-native-custom-article .c-eb-mtd-cta a:hover,
.eb-native-single.eb-native-custom-article .c-eb-mtd-cta a:focus {
  background: #65d85e;
  color: #1b1b1b;
  text-decoration: underline;
}
.eb-native-single.eb-native-custom-article .c-eb-disclaimer {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid #c9e6eb;
  font-size: 16px;
}
.eb-native-single .c-eb-trial-cta {
  margin: 8px 0 32px;
  padding: 28px;
  border: 1px solid #bfe3c6;
  border-radius: 12px;
  background: #f1faf3;
  text-align: center;
  box-sizing: border-box;
}
.eb-native-single .c-eb-trial-cta-primary,
.eb-native-single .c-eb-trial-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}
.eb-native-single .c-eb-trial-cta-primary {
  min-height: 56px;
  padding: 15px 28px;
  border-radius: 40px;
  background: #76e36e;
  color: #ffffff;
  font-size: 20px;
}
.eb-native-single .c-eb-trial-cta-primary:hover,
.eb-native-single .c-eb-trial-cta-primary:focus {
  background: #5fd657;
  color: #ffffff;
  text-decoration: underline;
}
.eb-native-single .c-eb-trial-cta-label {
  display: block;
  margin-top: 18px;
  color: #4a4a4a;
  font-size: 15px;
  font-weight: 700;
}
.eb-native-single .c-eb-trial-cta-apps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}
.eb-native-single .c-eb-trial-cta-secondary {
  min-height: 46px;
  padding: 11px 18px;
  border: 2px solid #028ca6;
  border-radius: 40px;
  background: #ffffff;
  color: #006f85;
  font-size: 16px;
}
.eb-native-single .c-eb-trial-cta-secondary:hover,
.eb-native-single .c-eb-trial-cta-secondary:focus {
  background: #e8f8fb;
  color: #00596b;
  text-decoration: underline;
}
.eb-native-single .c-eb-trial-cta-primary:focus-visible,
.eb-native-single .c-eb-trial-cta-secondary:focus-visible {
  outline: 3px solid #1b1b1b;
  outline-offset: 3px;
}
.eb-native-single.eb-native-custom-article .c-blog-post-body .c-eb-trial-cta-primary {
  color: #ffffff;
  text-decoration: none;
}
.eb-native-single.eb-native-custom-article .c-blog-post-body .c-eb-trial-cta-secondary {
  color: #006f85;
  text-decoration: none;
}
@media (max-width: 480px) {
  .eb-native-single.eb-native-custom-article .c-eb-article-content {
    font-size: 17px;
  }
  .eb-native-single.eb-native-custom-article .c-blog-post-body h2 {
    margin-top: 38px;
  }
  .eb-native-single.eb-native-custom-article .c-eb-mtd-cta {
    padding: 22px 18px;
  }
  .eb-native-single.eb-native-custom-article .c-eb-mtd-cta a {
    width: 100%;
    box-sizing: border-box;
  }
  .eb-native-single .c-eb-trial-cta {
    padding: 22px 18px;
  }
  .eb-native-single .c-eb-trial-cta-primary,
  .eb-native-single .c-eb-trial-cta-secondary {
    width: 100%;
  }
  .eb-native-single .c-eb-trial-cta-apps {
    flex-direction: column;
  }
}

/* Related tiles: real img, one photo, object-fit (same as listing). */
.eb-native-single .c-blog-list-img {
  position: relative;
  overflow: hidden;
  background-image: none !important;
}
.eb-native-single .c-blog-list-img > img.c-blog-list-photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 0;
  display: block;
}
