/* Reading pages retain Astra's sidebar while keeping the article measure comfortable. */
.single-post #main .entry-header,
.single-post #main .entry-content {
  max-width: 72ch;
}
.single-post #main .entry-content,
.page-id-1451 #main .entry-content {
  line-height: 1.7;
}
.single-post #main .entry-content :is(h2, h3, h4),
.page-id-1451 #main .entry-content :is(h2, h3, h4) {
  line-height: 1.2;
  margin-top: 1.5em;
  margin-bottom: .5em;
}
.single-post #main .entry-content :is(p, ul, ol),
.page-id-1451 #main .entry-content :is(p, ul, ol) {
  margin-bottom: 1.25em;
}
.single-post #main .entry-content li + li,
.page-id-1451 #main .entry-content li + li {
  margin-top: .45em;
}
.page-id-1451 #main .uagb-container-inner-blocks-wrap {
  max-width: 76ch;
  margin-inline: auto;
}

/* Archive entries and the Learn index are browsable as distinct items. */
.archive.author #main .ast-article-inner {
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
}
.archive.author #main .entry-title,
.page-id-2110 #main .ebpg-entry-title {
  line-height: 1.2;
}
.page-id-2110 #main .ebpg-grid-post-holder {
  height: 100%;
}
.page-id-2110 #main .ebpg-entry-wrapper {
  padding: clamp(1.25rem, 2.5vw, 2rem);
}
.page-id-2110 #main [data-learn-form] {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: .75rem;
}
.page-id-2110 #main [data-learn-form][hidden] {
  display: none;
}
.page-id-2110 #main [data-learn-form] input {
  flex: 1 1 14rem;
  min-width: 0;
}

/* Preserve page-specific Spectra layouts while preventing cramped mobile edges. */
@media (max-width: 767px) {
  body:not(.page-id-227):not(.page-id-2270) #main .uagb-is-root-container > .uagb-container-inner-blocks-wrap {
    padding-inline: max(1.25rem, env(safe-area-inset-left));
  }
  .single-post #main .entry-title,
  .archive.author #main .entry-title {
    overflow-wrap: anywhere;
  }
  .page-id-2110 #main [data-learn-form] label {
    flex-basis: 100%;
  }
}

/* Shared content blocks keep headings and controls legible across page families. */
body:not(.page-id-227):not(.page-id-2270) #main :is(.uagb-heading-text, .uagb-ifb-title) {
  text-wrap: balance;
}
body:not(.page-id-227):not(.page-id-2270) #main :is(.wp-block-button__link, .uagb-infobox-cta-link):focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}
.page-id-1433 #main .entry-content img,
.page-id-185 #main .entry-content img {
  max-width: 100%;
  height: auto;
}
.page-id-1748 #main #gform_wrapper_2 {
  max-width: 60rem;
  margin-inline: auto;
}

/* The Mill Creek hero inherits dark text from its captured page stylesheet. */
.page-id-2159 #main .uagb-block-ad24718a :is(.uagb-ifb-title, .uagb-ifb-desc) {
  color: #fff;
}

.single-post #main .fremdly-article-cta {
  margin-block: 3rem 1rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: .75rem;
  background: #e7f4fc;
  color: #101b30;
}
.single-post #main .fremdly-article-cta strong {
  display: block;
  font-family: inherit;
  font-size: 1.3rem;
  line-height: 1.25;
}
.single-post #main .fremdly-article-cta p {
  margin: .6rem 0 1.2rem;
}
.single-post #main .fremdly-article-cta a {
  display: inline-block;
  padding: .75rem 1.2rem;
  border-radius: 999px;
  background: #075de8;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.single-post #main .fremdly-article-cta a:focus-visible {
  outline: 3px solid #101b30;
  outline-offset: 3px;
}

/* Answers remain available without JavaScript; the native controller hides closed items. */
body #main .wp-block-uagb-faq .wp-block-uagb-faq-child .uagb-faq-content {
  display: block;
}
body #main .wp-block-uagb-faq .wp-block-uagb-faq-child .uagb-faq-content[hidden] {
  display: none;
}
body #main .uagb-faq-questions[role="button"]:focus-visible {
  outline: 3px solid #075de8;
  outline-offset: 3px;
}

body #main .eb-accordion-container .eb-accordion-wrapper .eb-accordion-content-wrapper {
  display: block;
  visibility: visible;
  position: static;
  height: auto;
  opacity: 1;
  overflow: visible;
}
body #main .eb-accordion-container .eb-accordion-wrapper .eb-accordion-content-wrapper[hidden] {
  display: none;
}
body #main .eb-accordion-title-wrapper[role="button"]:focus-visible {
  outline: 3px solid #075de8;
  outline-offset: 3px;
}
body #main .fremdly-service-cta {
  display: inline-block;
  margin-top: 1.25rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  background: #075de8;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
body #main .fremdly-service-cta:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}
.single-post #main .ast-article-single > .single-layout-1 > .entry-content {
  font-size: 17px;
}
.single-post #main .entry-content li > p {
  margin-bottom: 0;
}
@media (max-width: 767px) {
  .single-post #main .ast-article-single > .single-layout-1 > .entry-content {
    font-size: 16px;
  }
}

/* The captured sidebar article list is a static list when Slick is absent. */
#secondary .uagb-post-grid.uagb-post__items.fremdly-related-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  visibility: visible;
  width: 100%;
}
#secondary .fremdly-related-grid > .uagb-post__inner-wrap {
  width: 100%;
  min-width: 0;
  margin: 0;
  float: none;
}
#secondary .fremdly-related-grid .uagb-post__image img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* The Seattle landing page uses a column flex container; do not stretch its CTA. */
body[data-site-page="/seo/search-engine-optimization-seattle/"] #main .fremdly-service-cta {
  display: inline-flex;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  margin-block: 1.5rem;
}

/* Stack the featured Learn article instead of clipping its overlapping panel. */
@media (max-width: 767px) {
  .page-id-2110 #main .eb-post-grid-wrapper.pro-style-8:not(.has-featured-post) .ebpg-post-grid-column:first-child .ebpg-entry-media,
  .page-id-2110 #main .eb-post-grid-wrapper.pro-style-8:not(.has-featured-post) .ebpg-post-grid-column:first-child .ebpg-entry-wrapper {
    width: 100%;
    max-width: 100%;
  }
  .page-id-2110 #main .eb-post-grid-wrapper.pro-style-8:not(.has-featured-post) .ebpg-post-grid-column:first-child .ebpg-entry-wrapper {
    position: static;
    transform: none;
    margin: 0;
  }
  .page-id-2110 #main .eb-post-grid-wrapper.pro-style-8 .ebpg-post-grid-column:first-child .ebpg-entry-thumbnail img {
    height: auto;
    width: 100%;
  }
}

/* Readable contact link in the dark local-service hero. */
.page-id-2159 #main .uagb-block-a645a26b .uagb-heading-text { color:#fff; }
.page-id-2159 #main .uagb-block-a645a26b a { color:#b9e4ff; text-decoration:underline; }

body[data-site-page="/website-cost-calculator/"] #main h1 { font-size:clamp(2rem,3.5vw,3.25rem); line-height:1.16; }

/* The Seattle landing page is a reading layout, not a full-width card grid. */
body[data-site-page="/seo/search-engine-optimization-seattle/"] #main .entry-content {
  max-width: 80ch;
  margin-inline: auto;
  padding-block: 2rem;
  font-size: 17px;
  line-height: 1.7;
}
body[data-site-page="/seo/search-engine-optimization-seattle/"] #main .entry-content :is(img, figure) {
  max-width: 100%;
  height: auto;
}
@media (max-width:767px) {
  body[data-site-page="/seo/search-engine-optimization-seattle/"] #main .entry-content { font-size:16px; }
}

/* Keep the homepage heading hierarchy and its captured type scale in sync. */
#post-11 :is(.uagb-block-fa5f9ccd h3.uagb-heading-text, .uagb-block-db798399 h3.uagb-ifb-title) {
  font-size: 1.5rem;
  line-height: 1.3em;
}
#post-11 .uagb-block-psfbzuwg h3.uagb-question {
  font-size: 1.25rem;
  line-height: 1.3em;
}
@media (max-width: 921px) {
  #post-11 :is(.uagb-block-fa5f9ccd h3.uagb-heading-text, .uagb-block-db798399 h3.uagb-ifb-title) {
    font-size: 1.25rem;
  }
  #post-11 .uagb-block-psfbzuwg h3.uagb-question {
    font-size: 1.125rem;
  }
}

#post-11 .uagb-block-67ac3636 .uagb-ifb-desc a:any-link {
  color: #0051a8;
  text-decoration: underline;
}
#post-11 .uagb-block-67ac3636 .uagb-ifb-desc a:focus-visible {
  outline: 3px solid #0051a8;
  outline-offset: 3px;
}
