/* Let translated text use its existing column instead of growing a flex/grid item.
   Motion wrappers, clipping used for artwork and the original type scale stay intact. */
main .hero_wrapper,
main .hero_wrapper_top_content,
main .hero_wrapper_top_content > .gap_20,
main .hero_wrapper_top_content .gap_12 {
  min-width: 0;
}
main .hero_wrapper_top_content .gap_12,
main .hero_heading {
  max-width: 100%;
}
main .hero_heading,
.blog-title,
.blog-card__title,
.blog-article-section h2,
.blog-article-body,
.blog-article-toc {
  overflow-wrap: anywhere;
  -webkit-hyphens: auto;
  hyphens: auto;
}
/* The page's reviewed html lang supplies the browser's hyphenation language. */
main .button_wrapper {
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
}
main .button_wrapper > a,
main .button_outline,
main .button_green {
  min-width: 0;
  max-width: 100%;
}
main .button_green {
  height: auto;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}
main .button_green > div {
  min-width: 0;
}
.blog-article-hero__copy,
.blog-article-hero__media,
.blog-article-body,
.blog-article-layout > *,
.blog-card__content,
.blog-card__author-copy {
  min-width: 0;
}
.blog-title,
.blog-card__title,
.blog-pill,
.blog-filter-chip {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.blog-article-hero {
  grid-template-columns: minmax(0, 540px) minmax(0, 1fr);
}
/* Legal text shares the original hero shell, whose intrinsic flex width must shrink. */
main .hero_wrapper:has(.legal_content) {
  width: 100%;
}
main .legal_content {
  min-width: 0;
  overflow-wrap: anywhere;
  -webkit-hyphens: auto;
  hyphens: auto;
}
main .legal_content table {
  table-layout: fixed;
}
/* Keep each monetary amount intact; descriptions take the available wrapping space. */
.cp-calculator dl > div {
  flex-wrap: wrap;
}
.cp-calculator dt {
  flex: 1 1 7em;
  overflow-wrap: anywhere;
}
.cp-calculator dd {
  flex: 0 0 auto;
  max-width: 100%;
  margin-left: auto;
  white-space: nowrap;
  overflow-wrap: normal;
}
.cp-calculator__total,
.cp-calculator__difference strong,
.cp-calculator__current strong,
.cp-calculator [data-calculator-value] {
  white-space: nowrap;
  overflow-wrap: normal;
}
/* Fit result columns by readable amount width, including browser text enlargement. */
.cp-calculator__plans {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16em), 1fr));
}
@media (max-width: 991px) {
  .blog-article-hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  main .hero_wrapper_top_content { width: 100%; }
  main .legal_content th,
  main .legal_content td { padding: 8px 6px; }
}
@media (max-width: 520px) {
  .cp-calculator__results,
  .cp-calculator__plan { padding: 16px; }
  .cp-calculator__total { font-size: clamp(24px, 7vw, 34px); }
  .cp-calculator__difference strong { font-size: 21px; }
}
/* Native button semantics retain the existing custom-dropdown appearance. */
form[data-costplus-form="contact"] button.dropdown-toggle {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  height: auto;
  min-height: 40px;
  padding-right: 40px;
  overflow-wrap: anywhere;
}
form[data-costplus-form="contact"] .dropdown-toggle:focus-visible,
form[data-costplus-form="contact"] .dropdown-item[data-active="true"] {
  outline: 2px solid #5dff9d;
  outline-offset: 2px;
  border-radius: 4px;
}
form[data-costplus-form="contact"] .dropdown-list {
  top: 100%;
  max-height: min(45vh, 300px);
  overflow-y: auto;
}
main .hero_wrapper:has(> .hero_wrapper_top_content) {
  max-width: 100%;
}
main .hero_wrapper_top_content .hero_heading {
  max-width: 100%;
}
@media (max-width: 767px) {
  main .hero_heading .text-span { white-space: normal; }
}
/* Enlarged text may put a currency code on the next line; never split the number. */
.cp-calculator [data-calculator-value] {
  white-space: normal;
}
.cp-calculator__number {
  font: inherit;
  white-space: nowrap;
}
/* Translated model captions keep their existing bar-column width. */
.journey-home .trapcard_add_text.fixed_width {
  min-width: 0;
  overflow-wrap: anywhere;
  -webkit-hyphens: auto;
  hyphens: auto;
}
/* Copyright must occupy the space its translation uses before the legal links. */
.footer_bottom_wrap {
  column-gap: 24px;
}
.footer_bottom_wrap .rights_text {
  width: auto;
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
.footer_bottom_wrap .footer_top_center {
  min-width: 0;
  flex-wrap: wrap;
  row-gap: 8px;
}
/* Section titles must shrink with the original centered content column. */
main .section_cta .gap_20.maxwidth_660 {
  min-width: 0;
  max-width: min(100%, 660px);
}
main .section_cta .gap_20.maxwidth_660 > .gap_12,
main .section_cta .gap_20.maxwidth_660 .h2_heading {
  min-width: 0;
  max-width: 100%;
}
main .section_cta .gap_20.maxwidth_660 .h2_heading,
.nav .link_wrapper_nav > a {
  overflow-wrap: anywhere;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.nav .link_wrapper_nav > a {
  min-width: 0;
  max-width: 100%;
}
/* Flag, label and arrow each keep their natural width in the global switches. */
.nav .selected_currency {
  width: auto;
  flex-shrink: 0;
}
.nav .language_dropdown_wrapper {
  width: auto !important;
  min-width: 85px;
}
/* Long comparison and About headings retain their original text columns. */
main .section_compare_wrapper > .gap_20.maxwidth_600 {
  min-width: 0;
  max-width: min(100%, 600px);
}
main .section_compare_wrapper > .gap_20.maxwidth_600 > .gap_12,
main .section_compare_wrapper > .gap_20.maxwidth_600 .h2_heading,
.about-section-heading__title {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  -webkit-hyphens: auto;
  hyphens: auto;
}
/* Team roles can occupy another line without escaping the portrait card. */
.about-team__role-text {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
  -webkit-hyphens: auto;
  hyphens: auto;
}
/* The five footer columns also need word breaks at the tablet breakpoint. */
.footer .footer_link {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  -webkit-hyphens: auto;
  hyphens: auto;
}
/* Long onboarding terms stay within their numbered step at tablet widths. */
.journey-steps > li {
  overflow-wrap: anywhere;
  -webkit-hyphens: auto;
  hyphens: auto;
}
