/* Extracted from inline style attributes so the CSP can drop 'unsafe-inline' for styles. */
.sx-4e9d87a5.sx-4e9d87a5.sx-4e9d87a5{color:#b3261e}
.sx-82460327.sx-82460327.sx-82460327{margin:10px 0 0 !important}
.sx-9a44251e.sx-9a44251e.sx-9a44251e{--d:.05s}
.sx-f6278f5d.sx-f6278f5d.sx-f6278f5d{--d:.15s}
.sx-f9156499.sx-f9156499.sx-f9156499{--d:.1s}
.sx-fe7b4979.sx-fe7b4979.sx-fe7b4979{margin-top:6px !important}

/* Contact page (desktop): the form column stretches so its bottom lines up with the bottom of the map card,
   the message box takes up the extra height, and the map pop-up is narrower so it no longer covers the pin. */
@media (min-width:1001px){
  .wrap.contact{align-items:stretch}
  .wrap.contact>.rv:first-child{display:flex;flex-direction:column}
  .wrap.contact>.rv:first-child form{flex:1 1 auto;display:flex;flex-direction:column}
  .wrap.contact form .f:has(textarea){flex:1 1 auto;display:flex;flex-direction:column}
  .wrap.contact form .f:has(textarea) textarea{flex:1 1 auto;min-height:130px;resize:none}
}
@media (min-width:481px){
  /* never wider than the space left of the pin (the pin sits at the middle of the map) */
  .gmap-card-overlay{max-width:min(230px,calc(50% - 40px))}
}
@media (min-width:1001px) and (max-width:1240px){
  .gmap-card-overlay .gmap-rating{display:none}
}

/* Contact page: no rule under the heading block, and the form + map sit closer to the text above it. */
.route:has(.wrap.contact)>.phero{border-bottom:0}
@media (min-width:1001px){
  .route:has(.wrap.contact)>.phero{padding-bottom:24px}
  .route:has(.wrap.contact)>.sec.tight{padding-top:48px}
}

/* All pages: less empty space between the header and the first line of the page. */
.phero{padding-top:clamp(40px,5vw,56px)}
.hero{padding-top:clamp(72px,8vw,96px)}

/* Contact page: no line under the contact details, so it does not form a box with the map card right below it. */
.wrap.contact .info{border-bottom:0}

/* All landing pages: no edge-to-edge divider lines between sections. The header line, the footer lines and the
   borders on content cards (boxes) stay. */
.phero,.hero,.ticker{border-bottom:0}
.rule{border-top:0}
.band{border-block:0}

/* Dark theme: every use of the box grey becomes pure black: the bands, boxes, panels, table headers, map card AND the hover and
   selected states. --bg-2 is the grey used by all of them. (--bg-3, the map's own ground colour, is left alone.) */
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){--bg-2:#000000}
  :root:not([data-theme="light"]) .nav a:hover,
  :root:not([data-theme="light"]) .why-tabs button[aria-selected="true"]{background:#000000}
}
:root[data-theme="dark"]{--bg-2:#000000}
:root[data-theme="dark"] .nav a:hover,
:root[data-theme="dark"] .why-tabs button[aria-selected="true"]{background:#000000}

/* HOME PAGE ONLY: the header is transparent over the video at the top of the page (like North Atlantic Digital) and becomes
   the normal solid bar once the page is scrolled (the .scrolled class is added by the existing script after 8px).
   The hero now starts at the very top, behind the header, so it gets 65px more space to keep its text where it was. */
body:has(.route>.hero) .hdr{margin-bottom:-65px}
body:has(.route>.hero) .hero{padding-top:calc(clamp(72px,8vw,96px) + 65px);min-height:calc(min(92vh,880px) + 65px)}
body:has(.route>.hero) .hdr{transition:background-color .25s ease,border-color .25s ease}
body:has(.route>.hero) .hdr:not(.scrolled){
  background:transparent;border-bottom-color:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;
  /* the video is dark in both themes, so keep the header text, logo and button light while it is transparent */
  --text:#ededed;--muted:#c4c4c4;--line:transparent;--line-2:rgba(255,255,255,.28);--logo-filter:none;--btn-bg:#ededed;--btn-ink:#000000;
}

/* HOME PAGE header logo: the full North Atlantic Group logo from the business card (same wide proportions as on the card front),
   as a transparent image so it works on the transparent header. Light/dark colouring comes from --logo-filter as before. */
.brand img.lockup{height:52px;width:137px;max-width:none;filter:var(--logo-filter)}
@media (max-width:640px){.brand img.lockup{height:42px;width:111px}}

/* HOME PAGE header, styled like North Atlantic Digital: a taller transparent header, the logo at 80px high, and the menu in
   Kumbh Sans 14px semi-bold uppercase. The header is fixed (out of the page flow) so it can change height on scroll without the
   page jumping. Over the dark video the menu is light, with the current page in blue; once scrolled the bar is solid again. */
.hdr{position:fixed;left:0;right:0;top:env(safe-area-inset-top,0px);margin-bottom:0}
.hdr-in{transition:height .25s ease}
.brand img.lockup{transition:height .25s ease,width .25s ease}
body:has(.route>.hero) .hdr:not(.scrolled) .brand img.lockup{filter:brightness(0) invert(.949)}
.nav a{font-family:"Kumbh Sans",Arial,sans-serif;font-size:14px;font-weight:600;text-transform:uppercase;letter-spacing:normal}
body:has(.route>.hero) .hdr:not(.scrolled) .nav a:not(.cta){color:#adadad}
body:has(.route>.hero) .hdr:not(.scrolled) .nav a:not(.cta):hover{background:transparent;color:#ffffff}
body:has(.route>.hero) .hdr:not(.scrolled) .nav a[aria-current="page"]:not(.cta){color:#3763eb}
body:has(.route>.hero) .hdr.scrolled .nav a[aria-current="page"]:not(.cta){color:var(--accent)}
@media (min-width:1001px){
  .hdr:not(.scrolled) .hdr-in{height:108px}
  .hdr:not(.scrolled) .brand img.lockup{height:80px;width:210px}
  .hdr.scrolled .brand img.lockup{height:46px;width:121px}
}
@media (min-width:641px) and (max-width:1000px){
  .hdr:not(.scrolled) .hdr-in{height:84px}
  .hdr:not(.scrolled) .brand img.lockup{height:58px;width:153px}
}

/* PHONES, home page: the full video picture on top (not zoomed), with a soft moving backdrop of the same footage under the heading
   (drawn by hero-amb.js onto the small canvas). On wider screens the canvas is not shown. */
.hero-amb{display:none}
@media (max-width:640px){
  .hero-canvas{height:50vh;height:50svh;object-fit:cover}
  .hero-amb{display:block;position:absolute;left:0;top:0;width:100%;height:68%;z-index:-3;pointer-events:none;filter:blur(7px);transform:scale(1.06);-webkit-mask-image:linear-gradient(#000 72%,transparent);mask-image:linear-gradient(#000 72%,transparent)}
  /* still picture instead of the moving backdrop (reduced motion, or the video cannot play) */
  .hero.amb-still .hero-amb{display:none}
  .hero.amb-still::before{content:"";position:absolute;left:0;top:0;width:100%;height:68%;z-index:-3;pointer-events:none;background:url(hero-poster-2.jpg) 50% 50%/cover;filter:blur(7px);transform:scale(1.06);-webkit-mask-image:linear-gradient(#000 72%,transparent);mask-image:linear-gradient(#000 72%,transparent)}
}
/* PHONE MENU (home page): a readable blue for the current page, and a full-size tap target for the button */
@media (max-width:1000px){
  body:has(.route>.hero) .hdr:not(.scrolled) .nav a[aria-current="page"]:not(.cta){color:#7ea0ff}
  body:has(.route>.hero) .hdr.scrolled .nav a[aria-current="page"]:not(.cta){color:#7ea0ff}
  body:has(.route>.hero) .nav .cta{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
  /* the phone menu panel is always black, so its links are always light (whatever colour the links have on the bar itself) */
  body:has(.route>.hero) .hdr:not(.scrolled) .nav a:not(.cta):not([aria-current="page"]){color:#f2f2f2}
  body:has(.route>.hero) .hdr:not(.scrolled) .nav a:not(.cta):not([aria-current="page"]):hover{color:#ffffff}
}

/* PHONES, home page: the hero is only as tall as its content (as on the live site today), so the moving strip under it
   is visible as soon as the page opens. The full-screen minimum height is for larger screens only. */
@media (max-width:640px){
  body:has(.route>.hero) .hero{min-height:0}
}


/* LANGUAGE SELECTOR (header). Plain links to the translated pages: no script is needed to change language. */
.langsel{position:relative;display:inline-block;margin-left:2px}
.langsel summary{list-style:none;display:inline-flex;align-items:center;gap:8px;cursor:pointer;padding:10px 12px;min-height:44px;font:400 .9rem/1 var(--body);color:var(--muted);border-radius:6px;transition:color .15s}
.langsel summary::-webkit-details-marker{display:none}
.langsel summary:hover,.langsel[open] summary{color:var(--text)}
.langsel .car{opacity:.6}
.fl{display:inline-block;width:22px;text-align:center;font-size:17px;line-height:1;font-family:"Noto Color Emoji","Apple Color Emoji","Segoe UI Emoji",sans-serif}
.langsel ul{position:fixed;left:50%;top:84px;transform:translateX(-50%);width:min(900px,calc(100vw - 32px));max-height:min(70vh,560px);overflow:auto;margin:0;padding:10px 22px;list-style:none;display:grid;grid-template-columns:repeat(4,1fr);column-gap:18px;background:rgba(11,11,11,.55);-webkit-backdrop-filter:blur(20px) saturate(1.25);backdrop-filter:blur(20px) saturate(1.25);border:1px solid rgba(255,255,255,.28);border-radius:14px;box-shadow:0 24px 60px rgba(0,0,0,.35);z-index:60}
.langsel li a{display:flex;align-items:center;gap:8px;padding:12px 4px;border-bottom:1px solid rgba(255,255,255,.2);color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.55);font-size:15px;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.langsel li a:hover,.langsel li a[aria-current]{color:#b4c8ff;background:transparent}
.langsel summary{font-family:"Kumbh Sans",Arial,sans-serif;font-size:14px;font-weight:600;text-transform:uppercase}
body:has(.route>.hero) .hdr:not(.scrolled) .langsel summary{color:#adadad}
body:has(.route>.hero) .hdr:not(.scrolled) .langsel summary:hover,body:has(.route>.hero) .hdr:not(.scrolled) .langsel[open] summary{color:#fff}
/* keep the language names in normal case and white, whatever style the page menu links get */
body:has(.route>.hero) .hdr .nav .langsel.langsel li a:not(.cta){font-family:var(--body);font-size:15px;font-weight:500;text-transform:none;color:#fff}
body:has(.route>.hero) .hdr .nav .langsel.langsel li a:not(.cta):hover,body:has(.route>.hero) .hdr .nav .langsel.langsel li a[aria-current]:not(.cta){color:#b4c8ff;background:transparent}
.nav .langsel.langsel li a:not(.cta){color:#fff}
.nav .langsel.langsel li a:not(.cta):hover,.nav .langsel.langsel li a[aria-current]:not(.cta){color:#b4c8ff;background:transparent}
@media(max-width:1000px){
  .langsel ul{grid-template-columns:repeat(3,1fr)}
  .langsel{display:block;border-bottom:1px solid var(--line)}
  .langsel summary{padding:16px 4px;font-size:1.05rem}
  body:has(.route>.hero) .hdr:not(.scrolled) .langsel summary{color:#f2f2f2}
}
@media(max-width:700px){.langsel ul{left:16px;right:16px;transform:none;width:auto;grid-template-columns:repeat(2,1fr)}}


/* ALL PAGES: the header is the same as on the home page (fixed, tall logo, shrinking on scroll). On pages without the home video the
   content starts just below it, and the first block's top padding is reduced by the extra header height so the gap stays the same. */
html{scroll-padding-top:96px}
body:not(:has(.route>.hero)) main{padding-top:108px}
/* the gap between the header and the first line of text matches the home page at every screen size */
@media (min-width:1001px){.phero{padding-top:calc(clamp(72px,8vw,96px) - 43px)}}
@media (min-width:641px) and (max-width:1000px){body:not(:has(.route>.hero)) main{padding-top:84px}.phero{padding-top:calc(clamp(72px,8vw,96px) - 19px)}}
@media (max-width:640px){body:not(:has(.route>.hero)) main{padding-top:64px}.phero{padding-top:calc(clamp(72px,8vw,96px) + 1px)}}

/* CONTACT PAGE: no outline or background box around the Head Office details and the map; they sit directly on the page. */
.contact .info{border:0;border-radius:0;overflow:visible}
.contact .info>div{padding:0;border:0;gap:6px}
.contact .info>div+div{margin-top:18px}
.contact .gmap-card{border:0;border-radius:0;background:none;padding:0;gap:7px}

/* CONTACT PAGE (two columns): the "Describe the challenge" box and the map share the same top and bottom edges. The form and the right
   column are placed on one shared grid so the rows line up: the Head Office details sit beside the name/company rows, and the map
   starts level with the Describe box. */
@media (min-width:1001px){
  .contact{--box-h:300px;grid-template-rows:auto auto auto auto auto;align-items:start;row-gap:0}
  .wrap.contact.contact>.rv,.wrap.contact.contact>.rv:first-child,.wrap.contact.contact>.rv.in{display:contents}
  #contact-form{display:contents}
  #contact-form[hidden]{display:none}
  #contact-form>*{grid-column:1}
  #contact-form>.row2:nth-child(1){grid-row:1;margin-bottom:24px}
  #contact-form>.row2:nth-child(2){grid-row:2;margin-bottom:24px}
  #contact-form>.f{grid-row:3;margin-bottom:20px}
  #contact-form>.btn-row{grid-row:4;margin-bottom:20px}
  #contact-form>.hp{grid-row:1}
  .contact>.rv>.ok{grid-column:1;grid-row:1 / span 5}
  #message{height:var(--box-h);min-height:var(--box-h)}
  .contact .info{grid-column:2;grid-row:1 / span 2;align-self:start;margin-bottom:0}
  .contact .info>div:nth-child(2){grid-template-columns:1fr 1fr;column-gap:16px;row-gap:4px}
  .contact .info>div:nth-child(2)>.label{grid-column:1 / -1}
  .contact .info .val{font-size:1rem;line-height:1.3}
  .contact .gmap-card{grid-column:2;grid-row:3 / span 2;align-self:start;margin-top:0;display:flex;flex-direction:column}
  .contact .gmap-card .gmap-frame{height:var(--box-h);aspect-ratio:auto;flex:none}
}

/* ALL PAGES: no horizontal lines in the footer (above the footer block, and between the columns and the copyright row). */
.ftr{border-top:0}
.ftr-bot{border-top:0}

/* PHONES, home page: no blurred backdrop under the video (owner choice 2026-11-19) */
@media (max-width:640px){.hero-amb{display:none!important}.hero.amb-still::before{display:none!important}}
