/* Blog and articles: restore the approved 1180px axis in native Divi 5.
 * Scope excludes the header, footer, home and service landing pages.
 * Native modules, their links, labels and document pagination remain intact. */
body.pei-native:is(.blog,.archive) #main-content .pei-blog-hero.et_pb_section {
  width:calc(100% - 48px);
  max-width:1600px;
  margin:12px auto 0;
  padding:42px 0;
  border-radius:28px;
  text-align:left;
}
body.pei-native:is(.blog,.archive) #main-content .pei-blog-hero > .et_pb_row {
  width:calc(100% - 48px) !important;
  max-width:1180px !important;
  margin:0 auto;
  padding:0;
}
body.pei-native:is(.blog,.archive) #main-content .pei-blog-hero .et_pb_column {
  width:100%;
  min-width:0;
  margin:0;
  padding:0;
}
body.pei-native:is(.blog,.archive) #main-content .pei-blog-hero .et_pb_text {
  width:100%;
  max-width:none;
  margin:0 0 16px !important;
  padding:0;
  text-align:left;
}
body.pei-native:is(.blog,.archive) #main-content .pei-blog-hero .et_pb_text:last-child {margin-bottom:0 !important;}
body.pei-native:is(.blog,.archive) #main-content .pei-blog-hero h1 {
  max-width:900px;
  margin:0;
  padding:0;
  font-size:clamp(40px,4.3vw,58px);
  line-height:1.08;
  text-align:left;
}
body.pei-native:is(.blog,.archive) #main-content .pei-blog-hero p {
  max-width:740px;
  margin:0;
  font-size:16px;
  line-height:1.7;
  text-align:left;
}
body.pei-native:is(.blog,.archive) #main-content .et_pb_section:has(.pei-blog-grid) {
  padding:36px 0 56px;
}
body.pei-native:is(.blog,.archive) #main-content .et_pb_row:has(.pei-blog-grid) {
  display:flex;
  flex-direction:column;
  gap:28px;
  width:calc(100% - 96px) !important;
  max-width:1180px !important;
  margin:0 auto;
  padding:0;
}
body.pei-native:is(.blog,.archive) #main-content .et_pb_row:has(.pei-blog-grid)::before,
body.pei-native:is(.blog,.archive) #main-content .et_pb_row:has(.pei-blog-grid)::after {display:none;}
body.pei-native:is(.blog,.archive) #main-content .et_pb_row:has(.pei-blog-grid) > .et_pb_column {
  width:100% !important;
  min-width:0;
  float:none;
  margin:0 !important;
  padding:0;
}
body.pei-native:is(.blog,.archive) #main-content .et_pb_row:has(.pei-blog-grid) > .et_pb_column:last-child {
  order:-1;
  display:grid;
  grid-template-columns:minmax(260px,340px) minmax(0,1fr);
  gap:28px;
  align-items:start;
}
body.pei-native:is(.blog,.archive) #main-content .et_pb_row:has(.pei-blog-grid) > .et_pb_column:last-child > .et_pb_module {
  width:100%;
  min-width:0;
  max-width:none;
  margin:0 !important;
}
/* Native D5 serializes the hidden divider as .et_pb_space, not necessarily
 * .et_pb_divider. It must not consume the categories' second grid track. */
body.pei-native:is(.blog,.archive) #main-content .et_pb_row:has(.pei-blog-grid) > .et_pb_column:last-child > :is(.et_pb_divider,.et_pb_space.et_pb_divider_hidden) {display:none !important;}
body.pei-native:is(.blog,.archive) #main-content .et_pb_row:has(.pei-blog-grid) > .et_pb_column:last-child > .et_pb_search {grid-column:1;grid-row:1;}
body.pei-native:is(.blog,.archive) #main-content .et_pb_row:has(.pei-blog-grid) > .et_pb_column:last-child > .et_pb_text {grid-column:2;grid-row:1;}
body.pei-native:is(.blog,.archive) #main-content .et_pb_row:has(.pei-blog-grid) .et_pb_search {margin-top:0;}
body.pei-native:is(.blog,.archive) #main-content .et_pb_row:has(.pei-blog-grid) .et_pb_searchform,
body.pei-native.single-post #main-content .entry-content > .et_pb_row > .et_pb_column:last-child .et_pb_searchform {
  height:48px;
}
body.pei-native:is(.blog,.archive) #main-content .et_pb_row:has(.pei-blog-grid) .et_pb_search input,
body.pei-native.single-post #main-content .entry-content > .et_pb_row > .et_pb_column:last-child .et_pb_search input {
  min-height:48px;
  height:48px;
  padding-top:0;
  padding-bottom:0;
  line-height:normal;
}
body.pei-native:is(.blog,.archive) #main-content .et_pb_row:has(.pei-blog-grid) .et_pb_text p {
  margin:0 0 10px;
  font-size:13px;
  line-height:1.5;
}
body.pei-native:is(.blog,.archive) #main-content .et_pb_row:has(.pei-blog-grid) .et_pb_text ul {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 !important;
  padding:0 !important;
  float:none;
  list-style:none;
}
body.pei-native:is(.blog,.archive) #main-content .et_pb_row:has(.pei-blog-grid) .cat-item {float:none;margin:0 !important;padding:0 !important;list-style:none;}
body.pei-native:is(.blog,.archive) #main-content .et_pb_row:has(.pei-blog-grid) .cat-item a {
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:8px 11px;
  border:1px solid #dedede;
  border-radius:7px;
  font-size:12px;
  line-height:1.4;
  text-decoration:none;
}
body.pei-native:is(.blog,.archive) #main-content .pei-guides-toggle.et_pb_toggle {margin:0 0 24px;padding:22px 24px;}
body.pei-native:is(.blog,.archive) #main-content .pei-guides-toggle .et_pb_toggle_title {margin:0;line-height:1.3;}
body.pei-native:is(.blog,.archive) #main-content .pei-blog-grid .et_pb_blog_posts {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:26px;
  align-items:stretch;
}
body.pei-native:is(.blog,.archive) #main-content .pei-blog-grid article.et_pb_post {
  display:flex;
  flex-direction:column;
  min-width:0;
  width:auto;
  height:auto;
  margin:0;
  padding-bottom:24px;
}
body.pei-native:is(.blog,.archive) #main-content .pei-blog-grid article.et_pb_post .pei-v4-read {margin-top:auto;}
body.pei-native:is(.blog,.archive) #main-content .pei-blog-grid .pagination {width:100%;margin:28px 0 0;}

/* Single article: compact editorial opening and one shared image/text axis. */
body.pei-native.single-post #main-content .pei-blog-hero.et_pb_section {
  width:calc(100% - 96px);
  max-width:1180px;
  margin:28px auto 0;
  padding:0 0 24px;
  border-radius:0;
  text-align:left;
}
body.pei-native.single-post #main-content .pei-blog-hero > .et_pb_row {
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:0;
}
body.pei-native.single-post #main-content .pei-blog-hero .et_pb_column {width:100%;margin:0;padding:0;}
body.pei-native.single-post #main-content .pei-blog-hero .et_pb_text {
  width:100%;
  max-width:none;
  margin:0 0 12px !important;
  padding:0;
  text-align:left;
}
body.pei-native.single-post #main-content .pei-blog-hero .et_pb_text:last-child {margin-bottom:0 !important;}
body.pei-native.single-post #main-content .pei-blog-hero h1 {
  max-width:1040px;
  margin:0 0 8px;
  font-size:clamp(34px,3.8vw,52px);
  line-height:1.12;
  text-align:left;
}
body.pei-native.single-post #main-content .pei-blog-hero p {
  max-width:none;
  margin:0;
  font-size:14px;
  line-height:1.6;
  text-align:left;
}
body.pei-native.single-post #main-content .pei-blog-hero + .et_pb_section.entry-content {padding:8px 0 40px;}
body.pei-native.single-post #main-content .entry-content > .et_pb_row {
  display:grid;
  grid-template-columns:minmax(0,1fr) 280px;
  gap:40px;
  align-items:start;
  width:calc(100% - 96px) !important;
  max-width:1180px !important;
  margin:0 auto;
  padding:0;
}
body.pei-native.single-post #main-content .entry-content > .et_pb_row::before,
body.pei-native.single-post #main-content .entry-content > .et_pb_row::after {display:none;}
body.pei-native.single-post #main-content .entry-content > .et_pb_row > .et_pb_column {
  width:auto !important;
  min-width:0;
  float:none;
  margin:0 !important;
  padding:0;
}
body.pei-native.single-post #main-content .entry-content > .et_pb_row > .et_pb_column:first-child > .et_pb_image {margin:0 0 24px !important;}
body.pei-native.single-post #main-content .pei-blog-article-content {
  width:100%;
  max-width:72ch;
  margin:0;
  padding:0;
}
/* Native Post Content nests an .et-l renderer. Its outer layout wrappers
 * must not add another full page's section and row padding to the article. */
body.pei-native.single-post #main-content .pei-blog-article-content > .et-l > .et_builder_inner_content > .et_pb_section {
  padding:0;
  margin:0 0 28px;
}
body.pei-native.single-post #main-content .pei-blog-article-content > .et-l > .et_builder_inner_content > .et_pb_section > .et_pb_row {
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:0;
}
body.pei-native.single-post #main-content .entry-content > .et_pb_row > .et_pb_column:last-child {
  padding:22px;
  border:1px solid #dedede;
  border-radius:16px;
  background:#fff;
}
body.pei-native.single-post #main-content .entry-content > .et_pb_row > .et_pb_column:last-child > .et_pb_divider {display:none;}
body.pei-native.single-post #main-content .entry-content > .et_pb_row > .et_pb_column:last-child > .et_pb_search {
  margin:0 0 22px !important;
  overflow:hidden;
  border:1px solid #dedede;
  border-radius:8px;
}
body.pei-native.single-post #main-content .entry-content > .et_pb_row > .et_pb_column:last-child > .et_pb_text {margin:0 !important;font-size:14px;}
body.pei-native.single-post #main-content .entry-content > .et_pb_row > .et_pb_column:last-child .et_pb_text p {margin:0 0 12px;}
body.pei-native.single-post #main-content .entry-content > .et_pb_row > .et_pb_column:last-child ul {margin:0;padding:0;list-style:none;}
body.pei-native.single-post #main-content .entry-content > .et_pb_row > .et_pb_column:last-child li {margin:0;padding:0;list-style:none;}
body.pei-native.single-post #main-content .entry-content > .et_pb_row > .et_pb_column:last-child li + li {border-top:1px solid #ededed;}
body.pei-native.single-post #main-content .entry-content > .et_pb_row > .et_pb_column:last-child li a {
  display:block;
  padding:10px 0;
  font-size:13px;
  line-height:1.5;
  text-decoration:none;
}
body.pei-native.single-post #main-content .entry-content > .et_pb_row > .et_pb_column:last-child .et_pb_searchsubmit {
  background:#00727c;
  border-color:#00727c;
  color:#fff;
  font-weight:600;
}
@media(max-width:980px) {
  body.pei-native:is(.blog,.archive) #main-content .pei-blog-hero.et_pb_section {width:calc(100% - 32px);}
  body.pei-native:is(.blog,.archive) #main-content .pei-blog-hero > .et_pb_row {width:calc(100% - 16px) !important;}
  body.pei-native:is(.blog,.archive) #main-content .et_pb_row:has(.pei-blog-grid),
  body.pei-native.single-post #main-content .pei-blog-hero.et_pb_section,
  body.pei-native.single-post #main-content .entry-content > .et_pb_row {width:calc(100% - 48px) !important;}
  body.pei-native:is(.blog,.archive) #main-content .et_pb_row:has(.pei-blog-grid) > .et_pb_column:last-child {grid-template-columns:1fr;gap:20px;}
  body.pei-native:is(.blog,.archive) #main-content .et_pb_row:has(.pei-blog-grid) > .et_pb_column:last-child > :is(.et_pb_search,.et_pb_text) {grid-column:1;grid-row:auto;}
  body.pei-native:is(.blog,.archive) #main-content .pei-blog-grid .et_pb_blog_posts {grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;}
  body.pei-native.single-post #main-content .entry-content > .et_pb_row {grid-template-columns:1fr;gap:30px;}
  body.pei-native.single-post #main-content .entry-content > .et_pb_row > .et_pb_column:last-child ul {display:flex;flex-wrap:wrap;gap:6px 18px;}
  body.pei-native.single-post #main-content .entry-content > .et_pb_row > .et_pb_column:last-child li + li {border:0;}
}
@media(max-width:767px) {
  body.pei-native:is(.blog,.archive) #main-content .pei-blog-hero.et_pb_section {width:calc(100% - 24px);padding:30px 0;border-radius:20px;}
  body.pei-native:is(.blog,.archive) #main-content .pei-blog-hero > .et_pb_row {width:calc(100% - 16px) !important;}
  body.pei-native:is(.blog,.archive) #main-content .et_pb_row:has(.pei-blog-grid),
  body.pei-native.single-post #main-content .pei-blog-hero.et_pb_section,
  body.pei-native.single-post #main-content .entry-content > .et_pb_row {width:calc(100% - 40px) !important;}
  body.pei-native:is(.blog,.archive) #main-content .pei-blog-hero h1 {font-size:40px;}
  body.pei-native:is(.blog,.archive) #main-content .pei-blog-hero p {font-size:15px;}
  body.pei-native:is(.blog,.archive) #main-content .et_pb_section:has(.pei-blog-grid) {padding:26px 0 40px;}
  body.pei-native:is(.blog,.archive) #main-content .pei-blog-grid .et_pb_blog_posts {grid-template-columns:1fr;gap:24px;}
  body.pei-native:is(.blog,.archive) #main-content .pei-guides-toggle.et_pb_toggle {padding:18px 20px;}
  body.pei-native.single-post #main-content .pei-blog-hero.et_pb_section {margin-top:20px;padding-bottom:20px;}
  body.pei-native.single-post #main-content .pei-blog-hero h1 {font-size:34px;line-height:1.14;}
  body.pei-native.single-post #main-content .entry-content > .et_pb_row > .et_pb_column:last-child {padding:20px;}
}

/* Editorial blog polish — 2026-10-25.
 * Existing SSR cards keep their complete titles, copy, images and links.
 * Shared rows align the five native card zones; flex remains the fallback. */
body.pei-native:is(.blog,.archive) #main-content .et_pb_row:has(.pei-blog-grid) > .et_pb_column:last-child {
  padding-bottom:24px;
  border-bottom:1px solid #dedede;
}
body.pei-native:is(.blog,.archive) #main-content .et_pb_row:has(.pei-blog-grid) .et_pb_search {
  overflow:hidden;
  border:1px solid #bdbdbd;
  border-radius:8px;
  background:#fff;
}
body.pei-native:is(.blog,.archive) #main-content .et_pb_row:has(.pei-blog-grid) .et_pb_search input.et_pb_s {
  border:0;
  padding-inline:16px;
  color:#111;
  background:#fff;
  font-size:14px;
}
body.pei-native:is(.blog,.archive) #main-content .et_pb_row:has(.pei-blog-grid) .et_pb_search input.et_pb_searchsubmit {
  min-width:76px;
  border:0;
  color:#fff;
  background:#00727c;
  font-size:13px;
  font-weight:600;
}
body.pei-native:is(.blog,.archive) #main-content .et_pb_row:has(.pei-blog-grid) .et_pb_text p {
  color:#111;
  font-size:13px;
  font-weight:600;
}
body.pei-native:is(.blog,.archive) #main-content .et_pb_row:has(.pei-blog-grid) .cat-item a {
  min-height:40px;
  padding:9px 12px;
  border-color:#bdbdbd;
  border-radius:6px;
  color:#00727c;
  background:#fff;
  font-size:12px;
  font-weight:600;
  transition:background-color .18s ease,border-color .18s ease,color .18s ease;
}
body.pei-native:is(.blog,.archive) #main-content .et_pb_row:has(.pei-blog-grid) .cat-item a:hover,
body.pei-native:is(.blog,.archive) #main-content .et_pb_row:has(.pei-blog-grid) .current-cat > a {
  border-color:#00727c;
  color:#fff;
  background:#00727c;
}
body.pei-native:is(.blog,.archive) #main-content .pei-guides-toggle.et_pb_toggle {
  padding:22px 24px;
  border-color:#dedede;
  border-radius:12px;
  background:#fff;
}
body.pei-native:is(.blog,.archive) #main-content .pei-blog-grid .et_pb_blog_posts {
  gap:28px;
}
body.pei-native:is(.blog,.archive) #main-content .pei-blog-grid article.et_pb_post {
  overflow:hidden;
  padding:0 0 24px;
  border:1px solid #dedede;
  border-radius:14px;
  color:#111;
  background:#fff;
  box-shadow:0 5px 20px rgba(0,0,0,.045);
  transition:border-color .18s ease,box-shadow .18s ease;
}
body.pei-native:is(.blog,.archive) #main-content .pei-blog-grid article.et_pb_post:hover,
body.pei-native:is(.blog,.archive) #main-content .pei-blog-grid article.et_pb_post:focus-within {
  border-color:#00727c;
  box-shadow:0 8px 24px rgba(0,0,0,.075);
}
body.pei-native:is(.blog,.archive) #main-content .pei-blog-grid article.et_pb_post > :is(.entry-featured-image-url,.pei-v4-blog-cover) {
  width:100%;
  aspect-ratio:8/5;
  margin:0 0 22px;
  border-bottom:1px solid #dedede;
  border-radius:0;
}
body.pei-native:is(.blog,.archive) #main-content .pei-blog-grid article.et_pb_post > .entry-featured-image-url img {
  display:block;
  width:100%;
  height:100%;
  aspect-ratio:8/5;
  object-fit:cover;
}
body.pei-native:is(.blog,.archive) #main-content .pei-blog-grid article.et_pb_post .entry-title {
  margin:0 0 14px;
  padding:0 24px;
  color:#111;
  font-size:21px;
  font-weight:600;
  line-height:1.3;
  letter-spacing:-.02em;
  overflow:visible;
  text-overflow:clip;
}
body.pei-native:is(.blog,.archive) #main-content .pei-blog-grid article.et_pb_post .entry-title a {
  color:#111;
  text-decoration:none;
}
body.pei-native:is(.blog,.archive) #main-content .pei-blog-grid article.et_pb_post .entry-title a:hover {
  color:#00727c;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}
body.pei-native:is(.blog,.archive) #main-content .pei-blog-grid article.et_pb_post .post-meta {
  margin:0 0 14px;
  padding:0 24px;
  color:#666;
  font-size:12px;
  line-height:1.65;
}
body.pei-native:is(.blog,.archive) #main-content .pei-blog-grid article.et_pb_post .post-meta a {
  color:#00727c;
  text-decoration:underline;
  text-underline-offset:2px;
}
body.pei-native:is(.blog,.archive) #main-content .pei-blog-grid article.et_pb_post .post-content {
  padding:0 24px;
  color:#555;
  font-size:15px;
  line-height:1.65;
}
body.pei-native:is(.blog,.archive) #main-content .pei-blog-grid article.et_pb_post .pei-v4-read {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:38px;
  margin:22px 24px 0;
  padding:15px 0 0;
  border-top:1px solid #dedede;
  color:#00727c;
  font-size:14px;
  font-weight:600;
  line-height:1.5;
  text-decoration:none;
}
body.pei-native:is(.blog,.archive) #main-content .pei-blog-grid article.et_pb_post .pei-v4-read:hover {
  color:#111;
  text-decoration:underline;
  text-underline-offset:3px;
}
body.pei-native:is(.blog,.archive) #main-content :is(.pei-blog-grid a,.cat-item a,.et_pb_search input,.pei-guides-toggle button):focus-visible {
  outline:2px solid #00727c;
  outline-offset:3px;
}
body.pei-native:is(.blog,.archive) #main-content .pei-blog-grid .pagination {
  margin-top:34px;
  padding-top:24px;
  border-top:1px solid #dedede;
}
body.pei-native:is(.blog,.archive) #main-content .pei-blog-grid .pagination a {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:10px 16px;
  border:1px solid #00727c;
  border-radius:7px;
  color:#00727c;
  background:#fff;
  font-size:14px;
  font-weight:600;
  line-height:1.5;
  text-decoration:none;
}
body.pei-native:is(.blog,.archive) #main-content .pei-blog-grid .pagination a:hover {
  color:#fff;
  background:#00727c;
}
@supports (grid-template-rows:subgrid) {
  body.pei-native:is(.blog,.archive) #main-content .pei-blog-grid article.et_pb_post {
    display:grid;
    grid-template-rows:subgrid;
    grid-row:span 5;
    row-gap:14px;
  }
  body.pei-native:is(.blog,.archive) #main-content .pei-blog-grid article.et_pb_post > :is(.entry-featured-image-url,.pei-v4-blog-cover,.entry-title,.post-meta) {
    margin-bottom:0;
  }
  body.pei-native:is(.blog,.archive) #main-content .pei-blog-grid article.et_pb_post .pei-v4-read {
    align-self:end;
    margin-top:4px;
  }
}
@media(max-width:980px) {
  body.pei-native:is(.blog,.archive) #main-content .pei-blog-grid .et_pb_blog_posts {gap:24px;}
}
@media(max-width:767px) {
  body.pei-native:is(.blog,.archive) #main-content .et_pb_row:has(.pei-blog-grid) > .et_pb_column:last-child {padding-bottom:22px;}
  body.pei-native:is(.blog,.archive) #main-content .pei-blog-grid .et_pb_blog_posts {gap:24px;}
  body.pei-native:is(.blog,.archive) #main-content .pei-blog-grid article.et_pb_post .entry-title {font-size:22px;}
}
@media(prefers-reduced-motion:reduce) {
  body.pei-native:is(.blog,.archive) #main-content :is(.cat-item a,.pei-blog-grid article.et_pb_post) {transition:none;}
}

/* Brand-hero option for the blog/archive only. Keep native source media editable. */
body.pei-native:is(.blog,.archive) #main-content .pei-blog-hero.et_pb_section {
  min-height:0!important;
  height:auto!important;
  padding:42px 0!important;
  background:#00727c!important;
  background-image:none!important;
  border-radius:28px;
}
body.pei-native:is(.blog,.archive) #main-content .pei-blog-hero.et_pb_section::before,
body.pei-native:is(.blog,.archive) #main-content .pei-blog-hero.et_pb_section::after {
  content:none!important;
  background:none!important;
}
body.pei-native:is(.blog,.archive) #main-content .pei-blog-hero :is(h1,h2,h3,h4,p,a,li,strong,b,span,.et_pb_text,.et_pb_text_inner) {
  color:#fff!important;
  opacity:1;
}
body.pei-native:is(.blog,.archive) #main-content .pei-blog-hero a:focus-visible {
  outline:2px solid #fff;
  outline-offset:4px;
}
@media(max-width:767px) {
  body.pei-native:is(.blog,.archive) #main-content .pei-blog-hero.et_pb_section {
    padding:32px 0!important;
    border-radius:20px;
  }
}
