/* Text stage2: one role scale, separate viewport scales, shared content edges. */
body[data-text-stage="v50"]{--td-title:34px;--td-h2:26px;--td-h3:20px;--td-body:16px;--td-action:15px;--td-gutter:32px;--td-max:1180px;--td-read:720px}
body[data-text-stage="v50"][data-page] main:is(.td-unified.v48-guide,.td-group-custom.td-group-detail,.td-unified,.hm-home) h1{font-size:var(--td-title)!important;line-height:1.4!important;letter-spacing:-.025em;font-weight:700!important;word-break:keep-all;overflow-wrap:break-word}
body[data-text-stage="v50"][data-page] main:is(.td-unified.v48-guide,.td-group-custom.td-group-detail,.td-unified,.hm-home) h2{font-size:var(--td-h2)!important;line-height:1.45!important;letter-spacing:-.02em;font-weight:700!important;word-break:keep-all;overflow-wrap:break-word}
body[data-text-stage="v50"][data-page] main:is(.td-unified.v48-guide,.td-group-custom.td-group-detail,.td-unified,.hm-home) h3{font-size:var(--td-h3)!important;line-height:1.5!important;font-weight:650!important;word-break:keep-all;overflow-wrap:break-word}
body[data-text-stage="v50"][data-page] main:is(.td-unified.v48-guide,.td-group-custom.td-group-detail,.td-unified,.hm-home) :is(.td-copy>p,.lead,.quote,.hm-heading>p:not(.hm-kicker),.hm-lastday-note,.v48-guide-header>p:not(.v48-guide-kicker),.v48-guide-section>p,.v48-guide-flow p,.role-grid article>p,.step p,.care-stage p,.output>p,.booking-help>p,.event-help>p,.faq-grid p){font-size:var(--td-body)!important;line-height:1.75!important;font-weight:400!important;word-break:keep-all;overflow-wrap:break-word}
body[data-text-stage="v50"][data-page] main:is(.td-unified.v48-guide,.td-group-custom.td-group-detail,.td-unified,.hm-home) :is(.button,.v48-guide-link,.v48-guide-return,.hm-entry-cta){font-size:var(--td-action)!important;line-height:1.6!important;min-height:44px}
body[data-text-stage="v50"] main :is(.td-wrap,.container),body[data-text-stage="v50"] .td-group-custom .wrap{width:calc(100% - var(--td-gutter)*2)!important;max-width:var(--td-max)!important;margin-inline:auto!important;box-sizing:border-box}
body[data-text-stage="v50"][data-page="guide"] main.td-unified.v48-guide{width:calc(100% - var(--td-gutter)*2);max-width:var(--td-max);padding:48px 0 64px}
body[data-text-stage="v50"][data-page="guide"] main.v48-guide>:is(header,section,ol,table){max-width:var(--td-read)}
body[data-text-stage="v50"] .td-copy{max-width:var(--td-read)}
body[data-text-stage="v50"] .td-group-custom .choice .number{display:block;position:absolute;top:20px;right:20px;margin:0;font-size:12px;line-height:18px;font-weight:650;color:#705385}
body[data-text-stage="v50"] .td-group-custom .choice h3{padding-right:22px}
@media(max-width:800px){
 body[data-text-stage="v50"]{--td-title:26px;--td-h2:22px;--td-h3:18px;--td-body:15px;--td-action:14px;--td-gutter:20px}
 body[data-text-stage="v50"][data-page="guide"] main.td-unified.v48-guide{padding-block:28px 48px}
 body[data-text-stage="v50"][data-page="home"] .hm-home .hm-definition :is(.hm-lead,.hm-definition-support){font-size:14px!important;line-height:1.75!important}
 body[data-text-stage="v50"] .td-group-custom .choice h3{font-size:18px!important}
}
/* The last-day page has its own legacy main wrapper and an obsolete two-column header grid. */
body[data-text-stage="v50"][data-page] main#main.ld-page h1{font-size:var(--td-title)!important;line-height:1.4!important;font-weight:700!important;letter-spacing:-.025em}
body[data-text-stage="v50"][data-page] main#main.ld-page h2{font-size:var(--td-h2)!important;line-height:1.45!important;font-weight:700!important}
body[data-text-stage="v50"][data-page] main#main.ld-page h3{font-size:var(--td-h3)!important;line-height:1.5!important;font-weight:650!important}
body[data-text-stage="v50"][data-page] main#main.ld-page p{font-size:var(--td-body);line-height:1.75}
body[data-text-stage="v50"] main .ld-wrap{width:calc(100% - var(--td-gutter)*2)!important;max-width:var(--td-max)!important;margin-inline:auto!important}
body[data-text-stage="v50"][data-page][data-nontext-skin] #siteHeader .nav-shell{display:flex!important;flex-wrap:nowrap;align-items:center}
body[data-text-stage="v50"][data-page="last-day-example"] #siteHeader .brand{width:144px!important;min-width:0;flex:0 0 144px}
body[data-text-stage="v50"][data-page="last-day-example"] #siteHeader .brand img{width:100%!important;max-width:100%;height:auto}
body[data-text-stage="v50"][data-page="last-day-example"] #siteHeader .consult{order:0}
body[data-text-stage="v50"][data-page="last-day-example"] #siteHeader .td-menu-separator-v48{order:1}
body[data-text-stage="v50"][data-page="last-day-example"] #siteHeader .menu-trigger{order:2}
@media(max-width:800px){body[data-text-stage="v50"][data-page="last-day-example"] #siteHeader .brand{width:108px!important;flex-basis:108px}}
@media(max-width:359px){body[data-text-stage="v50"][data-page="last-day-example"] #siteHeader .brand{width:88px!important;flex-basis:88px}}
/* Text stage3: reading rhythm and natural height, after role-scale checks. */
body[data-text-flow="v50"] main :is(p,li,h1,h2,h3){text-wrap:pretty}
body[data-text-flow="v50"] main :is(.td-copy>p+p,.v48-guide-section>p+p){margin-top:16px!important}
body[data-text-flow="v50"] main :is(.button,.hm-entry-cta,.v48-guide-return,.v48-guide-link){max-width:100%;white-space:normal;height:auto;overflow-wrap:break-word}
body[data-text-flow="v50"] main :is(.td-section,.hm-section):not(.hm-video-section),body[data-text-flow="v50"] .td-group-detail>section{height:auto!important;min-height:0!important;max-height:none!important}
body[data-text-flow="v50"][data-page] main.td-unified .td-journey .td-wrap{grid-template-columns:minmax(0,720px) minmax(0,1fr);align-items:start}
body[data-text-flow="v50"][data-page] main.td-unified .td-journey .td-wrap .td-journey-title-v47{grid-column:1/-1;width:100%;max-width:none;justify-self:start;text-align:left!important;margin:0 0 20px!important}
body[data-text-flow="v50"][data-page] main.td-unified .td-journey .td-copy{width:100%;max-width:720px;justify-self:start;margin-inline:0!important}
@media(max-width:800px){body[data-text-flow="v50"][data-page] main.td-unified .td-journey .td-wrap{grid-template-columns:minmax(0,1fr)}body[data-text-flow="v50"] main .hm-definition .hm-definition-support{margin-top:18px!important}}

/* Explicit semantic roles also cover nested itinerary text and examples. */
body[data-text-stage="v50"] main#main [data-text-role="body"],body[data-text-stage="v50"] main#main [data-text-role="example"]{font-size:var(--td-body)!important;line-height:1.75!important;font-weight:400!important}
body[data-text-stage="v50"] main#main :is([data-text-role="body-primary"],[data-text-role="body-support"]){font-size:var(--td-body)!important;line-height:1.75!important}
body[data-text-stage="v50"] main#main [data-text-role="body-primary"]{font-weight:650!important}
body[data-text-stage="v50"] main#main [data-text-role="body-support"]{font-weight:400!important}
body[data-text-stage="v50"] main#main [data-text-role="label"]{font-size:13px!important;line-height:1.6!important;font-weight:650!important}
body[data-text-stage="v50"] main#main [data-text-role="note"]{font-size:13px!important;line-height:1.7!important;font-weight:400!important}
body[data-text-stage="v50"] main#main [data-text-role="table"]{font-size:15px!important;line-height:1.7!important;font-weight:400!important}
body[data-text-stage="v50"] main#main [data-text-role="diagram"]{font-size:13px!important;line-height:1.7!important;font-weight:400!important}
body[data-text-stage="v50"] main#main [data-text-role="button"]{font-size:var(--td-action)!important;line-height:1.6!important;font-weight:650!important;min-height:44px}
@media(max-width:800px){
 body[data-text-stage="v50"] main#main :is([data-text-role="body-primary"],[data-text-role="body-support"]){font-size:14px!important}
 body[data-text-stage="v50"] main#main [data-text-role="table"]{font-size:14px!important}
 body[data-text-stage="v50"] main#main [data-text-role="label"]{font-size:12px!important}
}

body[data-text-stage="v50"] main#main [data-text-role="tablecell"]{font-size:15px!important;line-height:1.7!important}
body[data-text-stage="v50"] main#main th[data-text-role="tablecell"]{font-weight:650}
@media(max-width:800px){body[data-text-stage="v50"] main#main [data-text-role="tablecell"]{font-size:14px!important}}
body[data-text-flow="v50"] main#main p[data-text-role="body"],body[data-text-flow="v50"] main#main p[data-text-role="example"]{max-width:var(--td-read)}
body[data-text-flow="v50"] main#main .hm-definition :is(.hm-lead,.hm-definition-support){width:100%;max-width:var(--td-read)!important}
body[data-text-flow="v50"][data-page] main.td-unified .td-journey .td-wrap{row-gap:24px;column-gap:48px}
body[data-text-flow="v50"][data-page] main.td-unified .td-journey .td-wrap .td-journey-title-v47{margin:0!important}
@media(max-width:800px){body[data-text-flow="v50"][data-page] main.td-unified .td-journey .td-wrap{row-gap:20px}}

body[data-text-flow="v50"] .td-conversation-hints-v49 .td-hints-note-v50{grid-column:1/-1;margin:0!important;text-align:left;word-break:keep-all}

/* R1: the home assembly uses hm-wrap, including an old16px small-screen exception. */
body[data-text-stage="v50"] main#main .hm-wrap{width:calc(100% - var(--td-gutter)*2)!important;max-width:var(--td-max)!important;margin-inline:auto!important;box-sizing:border-box}
@media(max-width:359px){
 body[data-text-stage="v50"] main#main .hm-definition .td-heading-cue-v44{grid-template-columns:minmax(0,1fr) 48px;gap:8px 12px;align-items:center}
 body[data-text-stage="v50"] main#main .hm-definition :is(.td-heading-copy-v44,.hm-title-group){display:contents}
 body[data-text-stage="v50"] main#main .hm-definition .hm-kicker{grid-column:1;grid-row:1;margin:0!important}
 body[data-text-stage="v50"] main#main .hm-definition .td-section-cue-v44{grid-column:2;grid-row:1;width:48px!important;height:48px!important;max-width:48px;min-width:0;margin:0!important;justify-self:end}
 body[data-text-stage="v50"] main#main .hm-definition .td-section-cue-v44 img{width:100%;height:100%;object-fit:contain}
 body[data-text-stage="v50"] main#main .hm-definition #home-definition-title{grid-column:1/-1;grid-row:2;width:100%;max-width:none!important;margin:0!important}
}
