@media (max-width:980px) {
  .site-shell-header .site-shell-nav {
    height:calc(100vh - 60px);
    height:calc(100dvh - 60px);
    max-height:calc(100vh - 60px);
    max-height:calc(100dvh - 60px);
    overflow:hidden;
    box-shadow:0 7px 15px rgb(18 58 63 / 12%);
  }
  .site-shell-nav__links {
    flex:0 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;
    padding:8px max(16px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left));
  }
  .site-shell-nav__links > a:not(.site-shell-nav__home) {
    flex:none;width:100%;margin-inline:0;min-height:52px;padding:10px 0;font-size:16px;
  }
  .site-shell-nav .site-shell-menu-actions {
    width:100%;align-self:stretch;flex:none;flex-direction:column;gap:10px;padding-top:16px;
    padding-inline:max(16px,env(safe-area-inset-left)) max(16px,env(safe-area-inset-right));
    padding-bottom:calc(20px + env(safe-area-inset-bottom));
  }
  .site-shell-nav .site-shell-menu-actions .site-shell-action {
    flex:none;min-height:48px;padding:9px 12px;border:2px solid var(--shell-orange);
  }
  .site-shell-menu-button[aria-expanded="false"]::after {bottom:2px}
}
@media (max-width:980px) and (max-height:670px) {
  .site-shell-nav__links > a:not(.site-shell-nav__home) {min-height:48px;padding-block:8px}
}
@media (max-width:980px) and (max-height:450px) {
  .site-shell-nav .site-shell-menu-actions {flex-direction:row;padding-top:10px;padding-bottom:calc(14px + env(safe-area-inset-bottom))}
  .site-shell-nav .site-shell-menu-actions .site-shell-action {flex:1 1 0;min-width:0;font-size:14px}
}

/* The brand type sizes, colors and page widths come from the existing site stylesheets. */
:where(main, .page, .wrap) :is(h1,h2,h3,h4),
:where(.booking,.thanks,body) > h1 {
  line-break:strict;
  text-wrap:balance;
}
.sec-head {min-inline-size:0}
.sec-head > .sec-lead {max-inline-size:52em;margin-inline:auto}
.sec-head h2, .qa-q h3, .merit-card h3, .opt h3,
.individual-case h2, .individual-case h3, .story-heading h3 {
  text-wrap:balance;
  line-break:strict;
}
:is(.qa-q,.qa-q h3) {min-width:0;text-wrap:balance}
 {text-wrap:wrap;line-break:strict}
 {word-break:normal;line-break:strict;text-wrap:wrap}
.wk-context-link {text-align:center}
.wk-context-link > a {margin-inline:auto}
#reason-5 .data-visual__output {flex-wrap:wrap}
#reason-5 .data-visual__output > b {white-space:nowrap;font-size:clamp(18px,2vw,26px)}
#reason-5 .data-visual__output > span {text-wrap:balance}
#results .case-resultbar__metrics dd {display:inline-flex;align-items:baseline;flex-wrap:nowrap;white-space:nowrap}
#results .individual-case {width:min(100%,52rem);margin-inline:auto}
#results .individual-case .case-measures {max-width:none}
#results .back-to-cases {display:table;width:fit-content;margin:22px auto}
#results .amieve-back .back-to-cases {display:inline-flex}
 {text-wrap:wrap;line-break:strict}
#results .story-heading h3,.detail-view #results .phead h1 {text-wrap:balance}
.detail-view #results .phead h1 .title-phrase {display:inline-block;max-width:100%}
@media (min-width:768px) {
  .sec-head h2 > span,.sec-head h2 > em {display:inline}
  .sec-head .sec-lead > br {display:none}
  .cmp-fit h3 br,.cmp-difference__other h4 br,.cmp-difference__ours h4 br {display:none}
}
@media (max-width:767px) {
   {text-wrap:wrap}
  .cmp-fit p br {display:none}
}
/* The release stylesheet gives FAQ questions a more specific wrapping rule. */
.page--faq details.qa summary h3.qa-q, details.qa summary h3.qa-q {
  flex:1;min-inline-size:0;text-wrap:balance;
}
#results .story h3[id$="-title"] {text-wrap:balance}
#results .story-heading h3 > span {max-inline-size:100%;text-wrap:balance}
#results .phead .wrap h1 > .title-phrase {display:inline-block}
@media(min-width:768px) {
  .sec-head h2[id][data-en] > span {display:inline}
  .home .problems__item-text br.sp-br {display:none}
}
#reason-4 .line-visual__center li :is(b,small),.journey-stages li small {text-wrap:balance}
.phead.phead--brand h1 > .layout-phrase {display:inline-block;max-width:100%}
@supports (word-break:auto-phrase) {
  details.qa summary h3.qa-q,
  #results .individual-case h3,
  .merit-card h3 {
    word-break:auto-phrase;
  }
}
/* Let prose fill its own column. Keep quotation labels, metric units and form inputs intact. */
:is(.tb-text,.tb-lead,.ty-book-lead,.ty-lead,.booking-card .desc,.desc#t-desc) {white-space:normal;text-wrap:wrap}
:is(.cmp-fit,.cmp-intro,.cmp-positioning) p,.home .faq__answer-inner p {text-wrap:wrap;word-break:normal;line-break:strict}
.page--faq details.qa summary h3.qa-q,details.qa summary h3.qa-q {text-wrap:wrap;word-break:normal}
.question-ending {white-space:nowrap}
#results .story-heading h3 > span {display:inline}
#results .story h3[id$="-title"],#results .individual-case h3 {text-wrap:pretty}
.detail-view #results .phead .wrap h1>.title-phrase {display:inline;white-space:normal}
#results .story-heading h3 em,.detail-view #results .phead h1 em {white-space:nowrap}
.phead.phead--brand h1 span,.demerit-name h3 span {white-space:normal}
@media(min-width:680px){
  #usable-examples .wk-real-example {
    max-width:900px;margin-inline:auto;display:grid;
    grid-template-columns:minmax(180px,28%) minmax(0,1fr);
    grid-template-areas:"movie heading" "movie description";
    grid-template-rows:auto 1fr;gap:16px clamp(24px,4vw,54px);
  }
  #usable-examples .wk-real-example__body {display:contents}
  #usable-examples .wk-real-example__heading {grid-area:heading;align-self:end;width:100%;margin:0;gap:14px}
  #usable-examples .wk-real-example__text {grid-area:description;padding-top:0}
  #usable-examples .wk-real-example .wk-movie__phone {grid-area:movie;width:100%;align-self:start;margin:0}
  #usable-examples .wk-real-example__heading h3 {flex:1;min-width:0;text-wrap:pretty}
}
@media(min-width:560px){
  .demerit-name h3 span {display:inline}
  .home .strengths__message p br {display:none}
}
.page .phead.phead--brand:not(.amieve-hero) .wrap h1 {text-wrap:wrap}
.page .phead.phead--brand:not(.amieve-hero) .wrap h1 > span:not(.title-phrase):not(.layout-phrase) {display:inline;white-space:normal}
/* Shared shell for editorial pages. Let longer headings grow when necessary. */
.wk-detail-view {
  --wk-paper:#fff;
  --wk-surface:#f7feff;
  --wk-opening-space:clamp(32px,6vw,64px);
  --wk-banner-height:clamp(116px,18.35vw,162px);
}
body.wk-detail-view :is(#results, .page, main) [data-wk-head].phead {
  margin:0;padding:0;border:0;
  background:linear-gradient(110deg,#087887 0%,#168e9d 58%,#379faa 100%);
}
body.wk-detail-view :is(#results, .page, main) [data-wk-head].phead > .wrap {
  min-height:var(--wk-banner-height);display:flex;flex-direction:column;justify-content:center;
  width:100%;max-width:1080px;margin-inline:auto;box-sizing:border-box;padding:14px 20px;
}
body.wk-detail-view :is(#results, .page, main) [data-wk-head].phead > .wrap > h1 {
  margin:0;max-width:100%;font-family:var(--font-head);font-size:clamp(24px,3.9vw,36px);
  font-weight:700;line-height:1.35;letter-spacing:.015em;text-wrap:wrap;color:white;
}
body.wk-detail-view [data-wk-crumb] {
  box-sizing:border-box;min-height:38px;padding-block:10px;margin-block:0;
  font-size:12px;line-height:1.5;background:var(--wk-paper);
}
body.wk-detail-view [data-wk-contents] {background:var(--wk-surface);box-shadow:0 0 0 100vmax var(--wk-surface);clip-path:inset(0 -100vmax)}
body.wk-detail-view [data-wk-opening] {background-color:var(--wk-surface);padding-block-start:var(--wk-opening-space) !important}
body.wk-detail-view [data-wk-opening] > .wk-info-page {margin-block-start:0;padding-top:0}
body.wk-detail-view [data-wk-opening] .sec-head > h2 {line-height:1.45}
body.wk-flow-view {background-color:#f7feff}


body.wk-detail-view #results .phead.amieve-hero .wrap h1 > .amieve-heading-unit,
body.wk-detail-view #results #case-amieve-title > .amieve-heading-unit {
  display:inline-block;white-space:nowrap;word-break:keep-all;overflow-wrap:normal;margin-inline-end:.16em;
}
body.wk-detail-view #results .phead.amieve-hero .wrap h1 > .amieve-heading-unit:last-child,
body.wk-detail-view #results #case-amieve-title > .amieve-heading-unit:last-child {margin-inline-end:0}

/* Running text follows the available line width, as in the magazine articles. */
main p, main li, main dd { text-wrap: wrap; }
.home .features__list li, .home .list03 li,
.home .strengths__card-list li, .home .operation__card-item-list li,
.home .operation__box-list li { text-wrap: wrap; }
#results .amieve-strategy-grid .cmp-fit p, .tb-flow > li { text-wrap: wrap; }
.cmp-page :is(p, li) .cmp-phrase { display: inline; }
.case-list .keep-word { white-space: nowrap; }
@media (max-width: 767px) {
  .cmp-page .sec-lead br,
  .wk-movie__detail .wk-result-text br { display: none; }
}
@media (min-width: 761px) {
  #reason-4 .line-visual {
    grid-template-columns: minmax(100px,.72fr) minmax(0,3.3fr) minmax(100px,.72fr);
    gap: 10px; padding: 12px;
  }
  #reason-4 :is(.line-visual__start, .line-visual__goal) {
    align-self: center; min-height: 116px; padding: 12px 4px; gap: 8px;
  }
  #reason-4 :is(.line-visual__start, .line-visual__goal) b { font-size: .9375rem; }
  #reason-4 .line-visual__start > span { font-size: .8125rem; }
  #reason-4 .line-visual__goal svg { width: 42px; height: 42px; }
  #reason-4 .line-visual__center ol { padding: 8px; gap: 8px; }
  #reason-4 .line-visual__center li {
    display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: 24px 30px auto 1fr;
    justify-items: center; align-items: start; min-height: 0; padding: 9px 4px 12px;
  }
  #reason-4 .line-visual__center li > span { width: 24px; height: 24px; justify-self: start; }
  #reason-4 .line-visual__center li > svg { width: 30px; height: 30px; }
  #reason-4 .line-visual__center li b { font-size: .9375rem; }
  #reason-4 .line-visual__center li small { font-size: .75rem; line-height: 1.45; }
}
#reason-4 .line-visual .flow-word { all: unset; display: inline-block; }
