/* Language switcher (EN FR ES DE 中文) in every page header, the courtesy-translation note of translated legal pages, the
   language suggestion bar of English pages (public/lang-suggest.js) and the company details in every footer (lib/company.mjs).
   Every page links this file (lib/i18n.mjs LANG_HEAD): bump its ?v there after a change. docs/LANGUAGES.md */
.lang-switch{display:flex;align-items:center;gap:2px;flex-shrink:0;font:700 12px/1 'DM Sans','Microsoft YaHei','PingFang SC','Noto Sans CJK SC',sans-serif;letter-spacing:.04em;padding:3px;border:1px solid #dce0d6;border-radius:6px;background:#fff9}
.lang-switch a,header .lang-switch a{display:inline-flex;align-items:center;justify-content:center;min-width:32px;min-height:32px;padding:0 7px;border-radius:4px;color:#3d4540;font:inherit;letter-spacing:inherit;text-decoration:none;white-space:nowrap;transition:background .15s,color .15s}
.lang-switch a:hover{background:#efb70033;color:#181c1a}
.lang-switch a:focus-visible{outline:2px solid #181c1a;outline-offset:1px}
.lang-switch a[aria-current="page"],header .lang-switch a[aria-current="page"]{background:#181c1a;color:#fff}
/* Main site header (style.css): brand | nav | switcher + button. The two auto margins keep the nav centred as before. */
header>.lang-switch{margin-left:auto}
header>nav:not(.lang-switch){margin-left:auto}
header>.lang-switch+.button,header>.lang-switch+a{margin-left:0}
header nav.lang-switch{display:flex}
/* Not enough room on one line (nav still shown, or a phone): the switcher gets its own thin row above the header line. */
@media (min-width:1001px) and (max-width:1279px),(max-width:760px){
  header:not(.site-header){flex-wrap:wrap;height:auto;row-gap:0;padding-top:8px}
  header:not(.site-header)>.lang-switch{order:-1;flex:0 0 100%;justify-content:flex-end;margin:0;padding:0;border:0;background:none}
  header:not(.site-header)>.brand{min-height:80px}
}
@media (max-width:650px){
  header:not(.site-header)>.brand{min-height:64px}
  .lang-switch{font-size:13px}
}
/* Main menu (lib/site-nav.mjs): five links + "Start free trial". Up to 1279 px wide the links open below the header line
   from the Menu button (public/site-menu.js); browsers without scripts show them. From 1280 px the links are in the
   header line; up to 1439 px the language switcher keeps its own thin row above it. */
.menu-toggle{display:none}
header>.header-trial{white-space:nowrap}
@media (max-width:1279px){
  header>nav#site-menu{display:none}
  header>.menu-toggle{display:inline-flex;align-items:center;justify-content:center;gap:9px;order:5;flex-shrink:0;min-width:44px;min-height:44px;padding:0 13px;border:1px solid #cfd3c8;border-radius:4px;background:#fff;color:#181c1a;font:700 14px/1 'DM Sans','Microsoft YaHei','PingFang SC','Noto Sans CJK SC',sans-serif;cursor:pointer}
  header>.menu-toggle:hover{border-color:#181c1a}
  header>.menu-toggle:focus-visible{outline:2px solid #181c1a;outline-offset:2px}
  .menu-icon{position:relative;display:block;width:18px;height:2px;border-radius:1px;background:currentColor}
  .menu-icon::before,.menu-icon::after{content:"";position:absolute;left:0;width:18px;height:2px;border-radius:1px;background:currentColor;transition:transform .15s}
  .menu-icon::before{top:-6px}
  .menu-icon::after{top:6px}
  header.menu-open .menu-icon{background:transparent}
  header.menu-open .menu-icon::before{top:0;transform:rotate(45deg)}
  header.menu-open .menu-icon::after{top:0;transform:rotate(-45deg)}
  header>.header-trial,header>.lang-switch+.header-trial{order:4;flex-shrink:0;margin-left:auto}
  /* one header line (brand | Start free trial | Menu), the language switcher on its own thin row above it */
  header:has(>#site-menu),header.menu-ready{flex-wrap:wrap;height:auto;row-gap:0;padding-top:8px}
  header:has(>#site-menu)>.lang-switch,header.menu-ready>.lang-switch{order:-1;flex:0 0 100%;justify-content:flex-end;margin:0;padding:0;border:0;background:none}
  header:has(>#site-menu)>.brand,header.menu-ready>.brand{min-height:80px}
  header>nav#site-menu{order:6}
  header.menu-open>nav#site-menu{display:flex;flex:0 0 100%;flex-direction:column;gap:0;margin:0;padding:4px 0 14px;border-top:1px solid #dcdcd2}
  header.menu-open>nav#site-menu a{display:flex;align-items:center;min-height:48px;padding:0 4px;border-bottom:1px solid #ecece4;font-size:16px;font-weight:700;color:#181c1a}
  header.menu-open>nav#site-menu a:last-child{border-bottom:0}
}
/* Phones: brand | Menu on the header line; "Start free trial" is the last item of the open menu (the hero has its own) */
@media (max-width:650px){
  header>.menu-toggle{padding:0 11px;margin-left:auto}
  .menu-label{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
  header:has(>#site-menu)>.brand,header.menu-ready>.brand{min-height:64px}
  header>.header-trial{display:none}
  header.menu-open>.header-trial{display:flex;order:7;flex:0 0 100%;justify-content:center;margin:0 0 16px;padding:14px;font-size:15px}
  header.menu-open>nav#site-menu{padding-bottom:10px}
}
@media (min-width:1280px) and (max-width:1439px){
  header:has(>#site-menu),header.menu-ready{flex-wrap:wrap;height:auto;row-gap:0;padding-top:8px}
  header:has(>#site-menu)>.lang-switch,header.menu-ready>.lang-switch{order:-1;flex:0 0 100%;justify-content:flex-end;margin:0;padding:0;border:0;background:none}
  header:has(>#site-menu)>.brand,header.menu-ready>.brand{min-height:80px}
  header>.lang-switch+.header-trial{margin-left:0}
}
@media (max-width:1279px) and (scripting:none){
  header>.menu-toggle{display:none}
  header>nav#site-menu{display:flex;flex:0 0 100%;flex-wrap:wrap;gap:4px 20px;margin:0;padding:0 0 12px}
}
@media (max-width:650px) and (scripting:none){
  header>.header-trial{display:flex;order:7;flex:0 0 100%;justify-content:center;margin:0 0 14px}
}
@media print{.menu-toggle{display:none!important}}
/* Hotels page (hotels.css .site-header) */
.site-header>.lang-switch{order:1;margin-left:0}
.site-header>.header-link{order:2}
@media (max-width:760px){
  .site-header{flex-wrap:wrap;row-gap:6px}
  .site-header>.lang-switch{order:-1;flex:0 0 100%;justify-content:flex-end;padding:0;border:0;background:none}
}
/* Companion (dark header) and Supplier Desk page: the switcher is the header's last item */
header>.lang-switch:last-child{margin-left:0}
@media (max-width:640px){header>.lang-switch:last-child{margin:12px 0 0;justify-content:flex-start}}

/* Courtesy-translation note at the top of translated legal pages */
.i18n-legal-note{margin:0 0 22px;padding:12px 16px;border:1px solid #e6d9a6;border-left:4px solid #efb700;border-radius:6px;background:#fff8df;color:#3d4540;font-size:14px;line-height:1.5}
.i18n-legal-note a{text-decoration:underline;font-weight:700;color:inherit}

/* Language suggestion bar (English pages, browser prefers fr/es/de/zh) */
.lang-suggest{display:flex;align-items:center;justify-content:center;gap:12px;padding:6px 52px 6px 16px;position:relative;background:#181c1a;color:#fff;font:600 14px/1.4 'DM Sans','Microsoft YaHei','PingFang SC','Noto Sans CJK SC',sans-serif;text-align:center}
.lang-suggest a{display:inline-flex;align-items:center;min-height:32px;color:#fff;text-decoration:underline;text-underline-offset:3px}
.lang-suggest a:hover{color:#efb700}
.lang-suggest button{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:36px;height:36px;border:0;border-radius:4px;background:transparent;color:#fff;font:400 22px/1 sans-serif;cursor:pointer}
.lang-suggest button:hover,.lang-suggest button:focus-visible{background:#ffffff26;outline:none}
@media print{.lang-switch,.lang-suggest{display:none!important}}

/* Company details at the end of every footer (lib/company.mjs): small secondary text on a full-width row of its own, which
   wraps on phones. The footers are flex rows (style.css, hotels.css, supplier-desk.css) or plain blocks (companion.css);
   order:9 keeps the block last where a footer item has its own order (hotels.css puts its tagline at order 3 on phones). */
footer:has(>.company-block){flex-wrap:wrap}
.company-block{flex:1 0 100%;order:9;box-sizing:border-box;width:100%;min-width:0;max-width:100%;margin:4px 0 0;padding:14px 0 0;border-top:1px solid #dcdcd2;color:#4b5248;font-size:12px;font-weight:400;line-height:1.6;letter-spacing:0;overflow-wrap:anywhere}
.company-block address{margin:0;font-style:normal}
.company-block strong{color:#222824;font-weight:700;letter-spacing:.03em}
.company-block p{width:auto;max-width:none;margin:6px 0 0;padding:0;color:inherit;font-size:inherit;line-height:inherit}
.company-block a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.company-block a:hover{color:#181c1a}
/* Hotels page: hotels.css sizes the last link of its footer (Travel support), which the company block now follows */
.site-header~footer>a:nth-last-child(2){font-size:13px}
@media (max-width:720px){.site-header~footer>a:nth-last-child(2){font-size:12px;margin-left:auto}}

/* Main menu with "Part numbers" (2026-11-21: lib/enquiries.mjs siteHeader, scripts/seo/build-pages.mjs, site/home.html):
   on desktop widths the gaps shrink with the window and the in-page links make room first, as feature-pages.css already
   does on narrower screens, so the longer menu does not push the page sideways. Translated menus are longer: their home
   page drops "Workflow" up to 2000px. */
@media (min-width:1001px){header:not(.site-header)>nav:not(.lang-switch){column-gap:clamp(16px,1.4vw,32px)}}
@media (min-width:1001px) and (max-width:1600px){header nav a[href$="/#screenshots"],header nav a[href="#workflow"]{display:none}}
@media (min-width:1001px) and (max-width:1320px){header nav a[href="#screenshots"]{display:none}}
@media (min-width:1001px) and (max-width:2000px){html:not([lang="en"]) header nav a[href="#workflow"]{display:none}}

/* On a phone, the trial opens a link the visitor can send to their own Windows PC. */
header > .header-phone-trial, .trial-phone-card { display: none; }
#phone-download { scroll-margin-top: 90px; }
#phone-download .phone-copy-link { overflow-wrap: anywhere; user-select: all; }
@media (max-width: 650px), (max-width: 920px) and (pointer: coarse) {
  header > .header-trial, header.menu-open > .header-trial { display: none; }
  header > .header-phone-trial { display: inline-flex; order: 4; margin-left: auto; }
  .trial-phone-card { display: block; }
  .trial-download a[download] { background: transparent; color: inherit; padding: 0; min-height: 0; text-decoration: underline; }
}
@media (max-width: 650px) {
  header > .header-phone-trial { display: none; }
  header.menu-open > .header-phone-trial { display: flex; order: 7; flex: 0 0 100%; justify-content: center; margin: 0 0 16px; padding: 14px; }
}
@media (max-width: 650px) and (scripting: none) {
  header > .header-phone-trial { display: flex; order: 7; flex: 0 0 100%; justify-content: center; margin: 0 0 14px; }
}
