/* Shared responsive finishing layer. Controls retain their native browser behavior. */
:root{--gutter:clamp(20px,5.5vw,88px)}
.header{gap:20px}
.header>.wordmark{display:inline-flex;align-items:center;min-height:44px;flex-shrink:0}
.header>.site-preferences{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-shrink:0;min-width:0}
.header .language-switch{margin:0;align-self:auto;flex-shrink:0}
.header .language-switch a,.header .language-switch button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px;font-size:12px}
.header .theme-controls{display:flex;align-items:center;flex-shrink:0}
.header .theme-controls button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px;font-size:12px;line-height:1}
.menu-toggle{min-height:44px}
.page-jumps a,.footer-links a,.gps-studio-note a,.gps-text-button,.gps-own-words>summary{min-height:44px}
.gps-studio-note a{display:inline-flex;align-items:center}
.editorial-row>*,.method-step>*,.contact-layout>*,.demo-grid>*,.section-heading>*,.deliverables>*,.footer-links>*{min-width:0}
.breadcrumb,.footer-bottom,.legal-content p,.collection-note,.field-help{overflow-wrap:anywhere}
.gps-journey[data-journey-ready=true] .gps-panel{overscroll-behavior-y:auto}
.gps-own-words input,.draft-box textarea{font-size:16px}
.gps-assistant>button[data-guide-help]{min-width:44px;min-height:44px}
.gps-assistant .gps-scene-next,.gps-assistant .gps-scene-contact{min-height:44px;font-size:12px}
.gps-progress button{min-height:44px}
.gps-journey[data-journey-ready=true] .gps-panels{top:var(--gps-panel-center,calc(50% - 65px))}
.gps-journey[data-journey-ready=true] .gps-panel,.gps-journey[data-journey-ready=true] .gps-intro{max-height:var(--gps-panel-max-height,calc(100svh - 365px))}

/* Tablet: navigation gets its own row before the full desktop header fits. */
@media(min-width:768px) and (max-width:1100px){
  .header,.page-home .header{display:grid;grid-template-columns:auto 1fr auto;row-gap:8px;padding-block:10px}
  .header>.wordmark{grid-column:1;grid-row:1}
  .header>.site-preferences{grid-column:3;grid-row:1}
  .header>nav{grid-column:1/-1;grid-row:2;justify-content:flex-end;gap:24px;width:100%}
  .header>nav a{font-size:13px}
  .gps-journey[data-journey-ready=true] .gps-panels{top:var(--gps-panel-center,calc(50% - 65px))}
  .gps-intro h1{font-size:clamp(52px,6.8vw,70px)}
}

@media(max-width:767px){
  html{scroll-padding-top:var(--site-header-height,126px)}
  section[id],nav[id]{scroll-margin-top:12px}
  .header,.js .header,.page-home .header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;padding:8px var(--gutter);min-height:0}
  .header>.wordmark,.page-home .header>.wordmark{grid-column:1;grid-row:1;font-size:34px;justify-self:start}
  .header>.menu-toggle{grid-column:2;grid-row:1;justify-self:end;margin:0;min-height:44px;padding-inline:14px}
  .header>.site-preferences{grid-column:1/-1;grid-row:2;justify-self:end;max-width:100%;gap:8px}
  .header>.nav,.header>nav,.header>nav.open{grid-column:1/-1;grid-row:3;order:3;width:100%;margin:4px 0 0;gap:0}
  .header>nav a{min-height:48px;padding-block:12px}
  .header>nav a:last-child{margin-top:8px}
  .header .language-switch{margin:0;align-self:center;padding:0}
  .header .theme-controls{padding:0;gap:0}
  .header .language-switch a,.header .language-switch button{min-height:44px;min-width:44px;padding:8px;font-size:12px}
  .header .theme-controls button{min-height:44px;min-width:44px;padding:8px;font-size:12px}
  .page-hero{padding-top:24px;padding-bottom:36px}
  .page-hero h1{font-size:clamp(38px,10vw,58px);line-height:1.13;letter-spacing:-.045em;text-wrap:balance;overflow-wrap:break-word}
  .page-hero .lead{font-size:16px;line-height:1.7}
  .page-hero .button,.contact-form>.button{max-width:100%;font-size:14px}
  .breadcrumb{padding-top:12px;gap:8px 12px;font-size:12px;line-height:1.5}
  .page-jumps{gap:8px;padding-bottom:28px}
  .page-jumps a{padding:10px 14px;font-size:12px}
  .editorial-row,.method-step{gap:14px;padding-block:28px}
  .editorial-row h2{font-size:30px;line-height:1.16}
  .method-step h2{font-size:32px;line-height:1.16}
  .editorial-row p,.method-step p{font-size:16px;line-height:1.7}
  .demo-shell{padding:18px}
  .demo-result{padding:20px}
  .demo-note,.demo-static>summary{font-size:13px;line-height:1.65}
  .demo-toolbar .button{font-size:13px;min-height:48px}
  .step-track li{font-size:12px;line-height:1.5}
  .demo-controls .choice{font-size:14px;line-height:1.5}
  .source-panel{padding:18px}
  .brand-preview-header,.brand-preview-footer{flex-wrap:wrap;gap:10px}
  .brand-preview-nav{flex-wrap:wrap;gap:8px 12px}
  .contact-layout{gap:32px;padding-bottom:56px}
  .contact-context>p{font-size:16px}
  .field label{font-size:15px}
  .field-help,.collection-note{font-size:13px;line-height:1.65}
  input,textarea,select{font-size:16px}
  .footer-links{column-gap:16px}
  .footer-links a,.page-home .footer-links a{font-size:13px;min-height:44px;line-height:1.5}
  .footer-bottom{font-size:12px;line-height:1.5}

  /* The card, guide and route controls occupy three distinct zones. */
  .gps-topline{top:16px;left:var(--gutter);right:var(--gutter);font-size:11px;line-height:1.5;gap:14px}
  .gps-topline>[data-guide-progress]{font-size:10px;max-width:46%}
  .gps-panels,.gps-assistant{width:calc(100% - 2 * var(--gutter))}
  .gps-panels{margin-left:var(--gutter)}
  .gps-assistant{left:var(--gutter)}
  .gps-journey[data-journey-ready=true] .gps-panels{top:var(--gps-panel-center,calc(50% - 66px));bottom:auto;height:500px;transform:translateY(-50%);align-items:center}
  .gps-journey[data-journey-ready=true] .gps-panel,.gps-journey[data-journey-ready=true] .gps-intro{max-height:var(--gps-panel-max-height,calc(100svh - var(--gps-header,112px) - 246px));overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;overscroll-behavior-y:auto;padding:22px 20px;border-radius:20px}
  .gps-journey[data-journey-ready=true] .gps-intro{padding:4px 2px;border-radius:0}
  .gps-intro h1{font-size:clamp(40px,11.8vw,68px);line-height:1.07;margin:20px 0 18px}
  .gps-intro-copy{font-size:14px;line-height:1.65;margin-bottom:20px}
  .gps-primary{font-size:13px;min-height:48px;padding:13px 18px}
  .gps-scroll-cue{font-size:12px;margin-top:18px}
  .gps-eyebrow{font-size:10px;letter-spacing:.1em;line-height:1.6}
  .gps-panel h2{font-size:clamp(29px,8.7vw,38px);line-height:1.1;margin:14px 0 12px}
  .gps-question-note{font-size:14px;line-height:1.6;margin-bottom:18px}
  .gps-choice{min-height:64px;padding:12px 10px;gap:10px}
  .gps-choice>span:nth-of-type(2){min-width:0}
  .gps-choice strong{font-size:14px;line-height:1.45}
  .gps-choice small{font-size:12px;line-height:1.5;margin-top:3px}
  .gps-key{font-size:11px;width:24px;height:24px}
  .gps-context-chip{font-size:12px;line-height:1.5;padding:6px 10px;margin-bottom:14px}
  .gps-own-words>summary{font-size:13px;min-height:44px;padding-block:10px}
  .gps-own-words input{font-size:16px}
  .gps-local-note,.gps-own-words [data-guide-suggestion]{font-size:12px;line-height:1.6}
  .gps-suggest-accept{font-size:13px;min-height:44px}
  .gps-journey[data-journey-ready=true] .gps-assistant{bottom:calc(96px + env(safe-area-inset-bottom,0px));min-height:76px;padding:10px 12px;gap:10px}
  .gps-assistant-avatar{width:30px;height:32px}
  .gps-assistant-name{font-size:12px;line-height:1.5}
  .gps-assistant p{font-size:12px;line-height:1.45;margin-top:2px}
  .gps-assistant .gps-scene-next,.gps-assistant .gps-scene-contact{min-width:88px;min-height:44px;font-size:12px;padding:10px 12px;gap:6px}
  .gps-progress{width:calc(100% - 2 * var(--gutter));bottom:calc(16px + env(safe-area-inset-bottom,0px));padding:10px 4px;border-radius:16px}
  .gps-progress button{min-width:0;min-height:48px;gap:6px;padding:0 1px}
  .gps-step-label{font-size:10px;line-height:1.35;max-width:100%;text-align:center;overflow-wrap:normal}
  .gps-step-dot{font-size:10px;width:22px;height:22px}
  .gps-progress-track{top:21px}
  .gps-result-summary{font-size:14px;line-height:1.65}
  .gps-arrival{font-size:12px;line-height:1.5}
  .gps-recap>span{font-size:11px;line-height:1.5}
  .gps-route-steps h3{font-size:14px;line-height:1.45}
  .gps-route-steps details p{font-size:13px;line-height:1.65}
  .gps-route-steps>li>span{font-size:12px}
  .gps-deliverables>summary,.gps-deliverables ul{font-size:13px;line-height:1.6}
  .gps-text-button{font-size:12px;line-height:1.5;min-height:44px}
  .gps-result-actions [role=status]{font-size:12px;line-height:1.5}
  .gps-library{padding:44px var(--gutter) 28px}
  .gps-library-heading>p{font-size:14px;line-height:1.65}
  .gps-library-links small{font-size:11px}
  .gps-library-links strong{font-size:17px}
  .gps-library-links p{font-size:13px;line-height:1.5}
  .gps-studio-note{font-size:13px;gap:10px 18px;margin-top:24px}
}

@media(max-width:350px){
  .header>.wordmark,.page-home .header>.wordmark{font-size:32px}
  .gps-step-label{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .gps-choice strong{font-size:13px}
  .gps-choice{gap:8px}
  .gps-panel h2{font-size:29px}
  .gps-assistant{gap:8px}
  .gps-assistant-avatar{display:none}
  .gps-assistant .gps-scene-next,.gps-assistant .gps-scene-contact{min-width:83px;padding-inline:10px}
}

/* Compact heights preserve the choice text; the decision card scrolls natively. */
@media(max-width:767px) and (max-height:700px){
  .gps-journey[data-journey-ready=true] .gps-panels{top:var(--gps-panel-center,calc(50% - 63px))}
  .gps-intro h1{font-size:36px;margin:12px 0;line-height:1.08}
  .gps-intro-copy{font-size:13px;margin-bottom:14px}
  .gps-intro .gps-signature,.gps-intro .gps-scroll-cue{display:none}
  .gps-journey[data-journey-ready=true] .gps-panel:not(.gps-intro){padding:18px 16px}
  .gps-journey[data-journey-ready=true] .gps-assistant{min-height:72px;bottom:calc(100px + env(safe-area-inset-bottom,0px))}
}

/* The first action stays in the initial card even on short portrait screens. */
@media(max-width:767px) and (max-height:620px){
  .gps-intro>.gps-eyebrow{display:none}
  .gps-intro h1{font-size:32px;line-height:1.06;margin:8px 0}
  .gps-intro h1 br:nth-of-type(2){display:none}
  .gps-intro-copy{font-size:13px;line-height:1.5;margin-bottom:8px}
  .gps-journey[data-journey-ready=true] .gps-intro>.gps-primary{min-height:48px;font-size:13px;line-height:1.4;padding:13px 18px;vertical-align:top}
  .gps-panel:not(.gps-intro) h2{font-size:26px;line-height:1.1;margin:10px 0}
  .gps-panel:not(.gps-intro) .gps-question-note{font-size:13px;line-height:1.5;margin-bottom:12px}
}

/* A shallow landscape viewport uses the available width for the guide. */
@media(min-width:560px) and (max-width:1100px) and (max-height:500px) and (orientation:landscape){
  .header,.js .header,.page-home .header{display:grid;grid-template-columns:auto auto minmax(0,1fr);gap:12px;padding:8px var(--gutter);min-height:0}
  .header>.wordmark,.page-home .header>.wordmark{grid-column:1;grid-row:1;font-size:32px}
  .js .header>.menu-toggle{display:block!important;grid-column:2;grid-row:1;min-height:44px;margin:0;padding-inline:12px;font-size:13px}
  .header>.site-preferences{grid-column:3;grid-row:1;justify-self:end;gap:8px}
  .header .language-switch,.header .theme-controls{padding:0;gap:0}
  .header .language-switch a,.header .language-switch button,.header .theme-controls button{min-width:44px;min-height:44px;padding:8px;font-size:12px}
  .js .header>nav:not(.open){display:none}
  .header>nav,.js .header>nav.open{grid-column:1/-1;grid-row:2;display:flex;flex-direction:row;justify-content:space-between;gap:12px;flex-wrap:wrap}
  .js .header>nav.open{position:absolute;top:100%;left:var(--gutter);right:var(--gutter);width:auto;margin:0;padding:10px 14px;background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:0 8px 24px rgba(var(--shadow-rgb),.12)}
  .header>nav a{min-height:44px;font-size:13px;padding-block:8px;border-bottom:0}
  .header>nav a:last-child{margin:0;padding:8px 14px;gap:12px}
  .gps-journey[data-journey-ready=true] .gps-stage{min-height:0}
  .gps-topline{top:14px;left:auto;right:var(--gutter);width:44vw;flex-direction:column;align-items:flex-start;gap:4px;font-size:11px}
  .gps-topline>[data-guide-progress]{max-width:none;font-size:11px;line-height:1.4;text-align:left}
  .gps-panels{margin-left:var(--gutter);width:44vw}
  .gps-journey[data-journey-ready=true] .gps-panels{top:50%;bottom:auto;height:500px;transform:translateY(-50%)}
  .gps-journey[data-journey-ready=true] .gps-panel,.gps-journey[data-journey-ready=true] .gps-intro{width:100%;max-width:none;max-height:calc(100svh - var(--gps-header,62px) - 24px);overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:auto;padding:18px 20px}
  .gps-journey[data-journey-ready=true] .gps-intro{padding:4px 2px}
  .gps-intro>.gps-eyebrow,.gps-intro .gps-signature,.gps-intro .gps-scroll-cue{display:none}
  .gps-intro h1{font-size:32px;line-height:1.06;margin:8px 0}
  .gps-intro h1 br:nth-of-type(2){display:none}
  .gps-intro-copy{font-size:13px;line-height:1.5;margin-bottom:8px}
  .gps-journey[data-journey-ready=true] .gps-intro>.gps-primary{min-height:48px;font-size:13px;line-height:1.4;padding:13px 18px;vertical-align:top}
  .gps-panel:not(.gps-intro) h2{font-size:28px;line-height:1.12;margin:12px 0}
  .gps-question-note{font-size:13px;line-height:1.5;margin-bottom:16px}
  .gps-choice{min-height:64px}
  .gps-choice strong{font-size:14px;line-height:1.45}
  .gps-choice small{font-size:12px;line-height:1.5}
  .gps-journey[data-journey-ready=true] .gps-assistant{left:auto;right:var(--gutter);width:44vw;bottom:96px;padding:10px 12px;gap:8px;min-height:72px}
  .gps-assistant-avatar,.gps-assistant-name small{display:none}
  .gps-assistant>div{font-size:12px;line-height:1.5}
  .gps-assistant-name{font-size:12px;line-height:1.5}
  .gps-assistant p{font-size:12px;line-height:1.45;margin-top:2px}
  .gps-assistant .gps-scene-next,.gps-assistant .gps-scene-contact{min-width:83px;min-height:44px;font-size:12px;padding:10px 12px;gap:6px}
  .gps-assistant:has(.gps-scene-next:not([hidden]))>button[data-guide-help],.gps-assistant:has(.gps-scene-contact:not([hidden]))>button[data-guide-help]{display:none}
  .gps-progress{left:auto;right:var(--gutter);width:44vw;bottom:14px;transform:none;padding:10px 4px}
  .gps-progress button{min-width:44px;min-height:48px;flex:1;padding:0 1px;gap:6px}
  .gps-step-label{display:block;max-width:100%;font-size:10px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .gps-step-dot{width:22px;height:22px;font-size:10px}
  .gps-progress-track{top:21px}
  .gps-map-caption{display:none}
}

@media(min-width:560px) and (max-width:639px) and (max-height:500px) and (orientation:landscape){
  .gps-journey[data-journey-ready=true] .gps-panels{top:calc(50% - 50px)}
  .gps-journey[data-journey-ready=true] .gps-panel,.gps-journey[data-journey-ready=true] .gps-intro{max-height:calc(100svh - var(--gps-header,62px) - 100px)}
  .gps-journey[data-journey-ready=true] .gps-intro{padding:0 2px}
  .gps-intro h1{font-size:28px;line-height:1.05;margin:4px 0}
  .gps-intro-copy{font-size:12px;line-height:1.4;margin-bottom:4px}
  .gps-journey[data-journey-ready=true] .gps-panel:not(.gps-intro){padding:12px 14px}
  .gps-panel:not(.gps-intro) h2{font-size:24px;line-height:1.1;margin:8px 0}
  .gps-panel:not(.gps-intro) .gps-question-note,.gps-panel .gps-context-chip{display:none}
  .gps-progress{left:50%;right:auto;width:calc(100% - 2 * var(--gutter));transform:translateX(-50%)}
}
.language-redirect body{visibility:hidden}
