/* Site header, phone menu and footer for the pages built separately (Home, Platform, Solutions).
   The values are scoped to the shell so they never touch the page's own styles. */
header[data-site], footer[data-sitefoot], [data-hpfoot], [data-mmenu] {
  --blue: #1B3A9C; --blue-l: #A9BEF3; --ink: #101828; --f: 'Instrument Sans', system-ui, sans-serif;
  --e: cubic-bezier(.22,1,.36,1); --w: 1320px; --foot-bg: var(--blue);
  font-family: var(--f); box-sizing: border-box;
}
header[data-site] *, footer[data-sitefoot] *, [data-hpfoot] * { box-sizing: border-box; }
header[data-site] a, footer[data-sitefoot] a, [data-hpfoot] a { color: inherit; text-decoration: none; }
header[data-site] p, footer[data-sitefoot] p, [data-hpfoot] p { margin: 0; }
header[data-site] [data-nav] a:hover { color: #fff !important; }
[data-mmenu][hidden] { display: none; }
[data-sitefoot] { display: none; }
@media (max-width: 1199px) { [data-hpfoot] { display: none !important; } [data-sitefoot] { display: block !important; } }
@media (min-width: 1200px) { [data-sitefoot] [data-5] { padding-bottom: 48px !important; } }
[data-flink]:hover { opacity: .85; }
@media (min-width: 768px) and (max-width: 1199px) {
  header[data-site] [data-gut] { padding-left: 32px !important; padding-right: 32px !important; }
  [data-nav] { gap: 16px !important; font-size: 13.5px !important; }
  [data-sitefoot] [data-5] { grid-template-columns: repeat(4,minmax(0,1fr)) !important; gap: 36px 24px !important; padding: 56px 0 64px !important; }
  [data-sitefoot] [data-5] > :first-child { grid-column: 1 / -1; flex-direction: row !important; align-items: center !important; justify-content: space-between; }
}
@media (min-width: 768px) and (max-width: 899px) { [data-nav] { gap: 12px !important; font-size: 13px !important; } }
@media (max-width: 767px) {
  [data-nav] { display: none !important; }
  [data-burger] { display: inline-flex !important; }
  [data-sitefoot] [data-5] { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 40px 20px !important; padding: 48px 0 56px !important; }
  [data-sitefoot] [data-5] > :first-child { grid-column: 1 / -1; gap: 24px !important; }
}
@media (max-width: 700px) { header[data-site] [data-gut], footer[data-sitefoot] [data-gut], [data-mmenu] [data-gut] { padding-left: 22px !important; padding-right: 22px !important; } }
:focus-visible { outline: 3px solid #0d2675 !important; outline-offset: 3px !important; box-shadow: 0 0 0 3px #fff !important; }
/* desktop scale is applied from the first paint (variables set in <head>), so the page does not jump */

/* iPhone: never show the system play button over background video; the poster shows until it plays */
video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
video::-webkit-media-controls { display: none !important; }

/* 17.11: no light seam under the header on fractional page scales */
header[data-site] { box-shadow: 0 2px 0 0 var(--blue); }
/* 18.11: header menu a step larger on desktop (Body S, 16px) */
@media (min-width: 1200px) {
  header[data-site] [data-nav] { font-size: 16px !important; gap: 30px !important; }
  header[data-site] [data-gut] > div > a[href*="demo"] { font-size: 16px !important; height: 42px !important; padding: 0 20px !important; }
}
/* 18.11: footer on the type scale (desktop): links 18 (Body), Get in touch 16 (Body S) — same as css/site.css, for pages that load only this file */
@media (min-width: 1200px) {
  [data-hpfoot] footer a[style*="font-size:17px"] { font-size: 18px !important; }
  [data-hpfoot] footer a[style*="font-size:15.5px"] { font-size: 16px !important; }
}

/* 18.11 (Ayala, iPhone Safari): phones — the header row fits the screen, so the menu button is always reachable.
   Safari draws the text a little wider than Chrome and pushed the burger off the right edge. */
@media (max-width:767px){
  header[data-site] [data-gut]{gap:12px!important}
  header[data-site] [data-gut] > a{flex:none}
  header[data-site] [data-gut] > div{gap:8px!important;min-width:0}
  header[data-site] [data-gut] > div > a[href*="demo"]{padding:0 12px!important;height:36px!important}
}
/* very narrow phones (under 360): the demo button lives in the menu only */
@media (max-width:359px){ header[data-site] [data-gut] > div > a[href*="demo"]{display:none!important} }
