:root {
  --reading-size: 18px;
  --reading-leading: 1.8;
}

main :where(.seo-copy, .seo-checks, .seo-faq, .faq, .wh-stack, .wh-feature,
  .seo-guide-intro, .privacy-content, .detailed-flow, .case-section)
  :where(p, dd, li, figcaption) {
  color: #344354;
}

main :where(.seo-copy, .seo-faq, .faq, .privacy-content, .detailed-flow) p {
  max-inline-size: 43em;
  overflow-wrap: anywhere;
}

main :where(.seo-copy, .seo-checks, .seo-hero, .wh-stack, .privacy-content) :where(h2, h3) {
  overflow-wrap: anywhere;
  word-break: auto-phrase;
}

.site-actions {
  margin-block: clamp(24px, 4vw, 56px);
  padding-block: clamp(20px, 3vw, 38px);
  border: 1px solid #d8e1d8;
  border-radius: 8px;
  background: #f7f9f5;
}

.site-actions > h2 {
  margin: 0 0 .55rem;
  color: #1a3a5c;
}

.site-actions > p {
  max-inline-size: 43em;
  margin: 0;
  color: #344354;
}

.site-action-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
  margin: 1rem 0 0;
}

.site-action-list > div {
  min-width: 0;
  padding: clamp(13px, 2vw, 21px);
  border: 1px solid #d8e1d8;
  border-left: 3px solid #1a3a5c;
  border-radius: 5px;
  background: #fff;
}

.site-action-list dt {
  color: #1a3a5c;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.site-action-list dd {
  margin: .35rem 0 0;
  color: #344354;
  overflow-wrap: anywhere;
}

.jp-photo-dialog img#jp-photo-detail {
  margin-inline: auto;
}

.breadcrumbs,
.breadcrumbs a,
.footer-links a,
.contact-area,
.back-top,
.hero-caption,
small.wh-hero-credit,
.jp-photo-open > span,
.jp-photo-dialog figcaption {
  font-size: 14px;
}

main :is(.small-note, .case-count, table caption) {
  font-size: 14px !important;
}

@media (min-width: 768px) {
  .guide-stage-page .subhero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(54%, 768px);
    height: auto;
    min-height: 360px;
  }

  .guide-stage-page .subhero > img {
    grid-area: 1 / 2;
    align-self: center;
    height: auto;
    max-height: 512px;
  }

  .guide-stage-page .subhero > div {
    position: static;
    grid-area: 1 / 1;
    align-self: center;
    max-width: none;
    padding: clamp(24px, 5vw, 82px);
  }

  .guide-stage-page .subhero h1 {
    font-size: clamp(27px, 3.32vw, 50px) !important;
  }

  .guide-stage-page .subhero::after {
    content: none;
  }
}

@media (max-width: 820px) {
  .site-action-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  html {
    scroll-padding-bottom: 78px;
  }

  :root {
    --reading-size: 16px;
    --reading-leading: 1.8;
  }

  .photo-upgrade figcaption,
  .wh-photo figcaption {
    font-size: 15px;
    line-height: 1.7;
  }
}

@media (min-width: 375px) and (max-width: 767px) {
  :root {
    --reading-size: 17px;
  }
}

@media (max-width: 630px) {
  .jp-photo-dialog:has(img#jp-photo-detail:is([src*="/designer50/"], [src*="/construction-"])) {
    width: calc(100% - 12px);
  }
}
