/* Eximo Global: launch updates v5 (November 2026).
   Load LAST in <head>, below final-touches.css:
   <link rel="stylesheet" href="launch-updates.css">
   Also used by certifications.html.
   v5: certifications.html footer now uses the same light colours and
       logo style as the index.html footer (section 6, "footer"). */

/* ================================================================ 1. "View specifications"
   Same size as the variety chips (11px), keeps its rounded outline and arrow */
.pc-hint{margin-top:10px!important;padding:5px 10px!important;gap:5px!important;font-size:11px!important;font-weight:600!important;line-height:1!important;border-radius:20px!important}
.pc-hint span{font-size:11px}

/* ================================================================ 2. "Other product" box */
.eg-other-field[hidden]{display:none!important}
.eg-other-field{animation:egFadeIn .25s ease}
.eg-other-count{display:block;text-align:right;margin-top:5px;font-size:9px}
.eg-other-count.is-near{color:#9a5b00!important;font-weight:700!important}
@keyframes egFadeIn{from{opacity:0;transform:translateY(-4px)}}

/* ================================================================ 3. Vessel Tracker */
.eg-tracker{background:var(--paper);border-top:1px solid var(--line)}
.eg-tracker .section-heading{margin-bottom:38px}
.eg-tr-grid{display:grid;grid-template-columns:minmax(280px,.74fr) minmax(0,1.6fr);gap:22px;align-items:stretch;margin-bottom:22px}
.eg-tr-form .pf-hint.is-error{color:#ffd9a0;font-weight:700}
.eg-tr-check{display:flex;align-items:center;gap:9px;font-size:11px;color:#cfe6fa;margin:2px 0 18px;cursor:pointer}
.eg-tr-check input{width:16px;height:16px;margin:0;accent-color:#48b7f4}
.eg-tr-example{display:block;width:100%;margin-top:10px;background:none;border:1px dashed #ffffff40;border-radius:6px;color:#cfe6fa;font:600 11px "DM Sans",sans-serif;padding:10px;cursor:pointer;transition:border-color .2s,color .2s}
.eg-tr-example:hover,.eg-tr-example:focus-visible{border-color:#48b7f4;color:#fff}
.eg-tr-links{margin-top:14px;display:grid;gap:8px}
.eg-tr-links[hidden]{display:none}
.eg-tr-links a{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;border-radius:6px;background:#ffffff12;border:1px solid #ffffff26;color:#fff;font-size:11px;font-weight:700;transition:background .2s,border-color .2s}
.eg-tr-links a:hover,.eg-tr-links a:focus-visible{background:#ffffff22;border-color:#48b7f4}
.eg-tr-links p{margin:2px 0 0;font-size:10px;line-height:1.6;color:#b9d7ee}
.eg-live-pill{display:inline-flex;align-items:center;gap:7px;padding:6px 12px;border-radius:20px;background:#0d4436;border:1px solid #29a373;color:#98f7c8;font-size:10px;font-weight:700;letter-spacing:.3px}
.eg-live-dot{width:7px;height:7px;border-radius:50%;background:#3be898;box-shadow:0 0 0 4px #3be89833;animation:egPulse 1.8s ease-in-out infinite}
@keyframes egPulse{50%{box-shadow:0 0 0 7px #3be89800}}
.eg-tr-frame iframe{display:block;width:100%;height:clamp(320px,40vw,460px);border:0;background:#0a1a33}

.eg-ct-field{display:block;max-width:420px}
.eg-ct-field span{display:block;font-size:9px;font-weight:700;letter-spacing:.9px;text-transform:uppercase;color:var(--muted);margin-bottom:7px}
.eg-ct-field input{width:100%;min-height:44px;padding:12px 14px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--navy);font-size:13px;letter-spacing:1px;text-transform:uppercase}
.eg-ct-field input:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px #075ccb15}
.eg-ct-hint{min-height:18px;margin:8px 0 14px;font-size:11px;line-height:1.6;color:var(--blue)}
.eg-ct-lines{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.eg-ct-line{display:flex;flex-direction:column;gap:4px;padding:14px;border-radius:9px;border:1px solid var(--line);background:var(--paper);transition:transform .2s,border-color .2s,background .2s}
.eg-ct-line b{font:800 14px Manrope,sans-serif;color:var(--navy)}
.eg-ct-line small{font-size:10px;color:var(--muted)}
.eg-ct-line:hover,.eg-ct-line:focus-visible{border-color:var(--blue);background:var(--ice);transform:translateY(-2px)}
.eg-ct-line.is-suggested{border:2px solid var(--blue);background:var(--ice)}
.eg-ct-line.is-suggested small::after{content:" · suggested";font-weight:700;color:var(--blue)}
.eg-tracker .compliance-note{margin-top:22px}

@media(max-width:1050px){
  .eg-tr-grid{grid-template-columns:minmax(0,1fr)}
  .eg-ct-lines{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:560px){
  .eg-tracker .ve-route-showcase{padding:18px 14px}
  .eg-tr-frame iframe{height:340px}
  .eg-ct-lines{grid-template-columns:1fr 1fr}
}
@media(prefers-reduced-motion:reduce){.eg-live-dot{animation:none}}

/* ================================================================ 4. Top menu (v4)
   - ☰ menu on PHONES ONLY (720px wide and less).
   - Laptops / tablets always show every link, with smaller text.
     launch-updates.js picks the largest text size that fits (see navSteps
     in its SETTINGS). Layouts, in order of preference:
       a) links in the exact centre of the top bar
       b) links centred between the logo and the buttons   (body.eg-nav-tight)
       c) links on a second row under the logo             (body.eg-nav-rows)
   - To change the default text size, edit --eg-nav-fs below AND the first
     navSteps value in launch-updates.js. */
:root{--eg-nav-fs:11.5px;--eg-nav-gap:22px}

@media(min-width:721px){
  .site-header .menu-toggle{display:none!important}
  .site-header .nav{font-size:var(--eg-nav-fs)!important;font-weight:600!important;letter-spacing:.1px}
  .site-header .nav a{white-space:nowrap!important;text-align:center}
  /* every link stays visible (an older rule hid one link on smaller laptops) */
  .site-header .nav a[href="#documents"]{display:inline-block!important}
  .site-header .header-actions{margin-left:auto}

  /* a) exact centre */
  body:not(.eg-nav-tight):not(.eg-nav-rows) .site-header .nav{
    position:absolute!important;left:50%!important;top:50%!important;right:auto!important;
    transform:translate(-50%,-50%)!important;
    width:max-content!important;max-width:none!important;margin:0!important;padding:0!important;flex:none!important;
    display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:center!important;
    gap:var(--eg-nav-gap)!important;z-index:2}

  /* b) between the logo and the buttons */
  body.eg-nav-tight .site-header .nav{
    position:static!important;transform:none!important;
    display:flex!important;flex:1 1 auto!important;flex-wrap:nowrap!important;width:auto!important;min-width:0;max-width:none!important;
    align-items:center!important;justify-content:center!important;gap:var(--eg-nav-gap)!important;margin:0 20px!important;padding:0!important}

  /* c) second row */
  body.eg-nav-rows .site-header{flex-wrap:wrap!important;height:auto!important;min-height:0!important;padding-top:6px!important;row-gap:0!important}
  body.eg-nav-rows .site-header .brand-logo{height:58px!important;min-width:0!important}
  body.eg-nav-rows .site-header .nav{
    order:10;position:static!important;transform:none!important;
    display:flex!important;flex:0 0 100%!important;width:100%!important;max-width:none!important;
    flex-wrap:wrap!important;align-items:center!important;justify-content:center!important;
    gap:4px var(--eg-nav-gap)!important;margin:4px 0 0!important;padding:9px 0 10px!important;
    border-top:1px solid var(--line,#dce9f4)}
}

/* Active-link underline: only the section you are looking at.
   (.eg-active is set by launch-updates.js; the old .is-active marker
   from script.js is ignored because it didn't know the newer sections.) */
.site-header .nav a.is-active:not(.eg-active){color:inherit}
.site-header .nav a.is-active:not(.eg-active)::after{transform:scaleX(0)}
.site-header .nav a.is-active:not(.eg-active):hover{color:var(--blue,#075ccb)}
.site-header .nav a.is-active:not(.eg-active):hover::after{transform:scaleX(1)}
.site-header .nav a.eg-active,.site-header .nav a[aria-current="page"]{color:var(--blue,#075ccb)}
.site-header .nav a.eg-active::after,.site-header .nav a[aria-current="page"]::after{transform:scaleX(1)}

/* ================================================================ 5. Mobile safety fixes */
body{overflow-x:clip}                 /* no sideways wobble from wide elements */
img,video,iframe{max-width:100%}
@media(max-width:720px){
  /* 16px stops iPhones from zooming in when a field is tapped */
  .enquiry-form input,.enquiry-form select,.enquiry-form textarea,
  .pf-group input,.pf-group select,.eg-ct-field input,
  .ex-in-box input,.ex-in-box select,.ex-tr-src{font-size:16px}
  .site-header{gap:8px}
  /* tiny text made readable on phones */
  .eyebrow{font-size:10px}
  .product-details p,.fine-print,.form-note,.form-status,.contact-note p{font-size:11px}
  .enquiry-form label{font-size:11px}
  .product-number,.document-label,.contact-note small{font-size:8px}
  .hero-footer{font-size:8px}
}
@media(max-width:420px){
  .site-header{padding:0 4%;gap:6px}
  .site-header .brand-logo{height:46px!important;min-width:0!important;max-width:36vw!important}
  .header-actions{gap:6px}
  .ex-theme{margin:0 2px!important}
  .ex-theme-btn{width:38px!important;height:38px!important}
}

/* ================================================================ 6. certifications.html */

/* --- top bar --- */
.cert-body{margin:0;background:#fff}
.cert-body .site-header{position:sticky;top:0;z-index:60;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:84px;padding:0 5%;background:#fff;border-bottom:1px solid var(--line,#dfe9f3);box-sizing:border-box}
.cert-body .brand{display:flex;align-items:center;flex:none}
.cert-body .brand-logo{display:block;height:60px;width:auto}
.cert-body .site-header .nav{display:flex;align-items:center;font-size:var(--eg-nav-fs);font-weight:600}
.cert-body .site-header .nav a{color:var(--navy,#063475);text-decoration:none;padding:6px 0}
.cert-body .site-header .nav a:hover,.cert-body .site-header .nav a[aria-current="page"]{color:var(--blue,#075ccb)}
.cert-body .header-actions{display:flex;align-items:center;gap:10px;margin-left:auto}
.cert-body .menu-toggle{display:none;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:42px;height:42px;padding:0;border:1px solid var(--line,#dfe9f3);border-radius:50%;background:#fff;cursor:pointer}
.cert-body .menu-toggle span{display:block;width:18px;height:2px;border-radius:2px;background:var(--navy,#063475)}

/* --- Contact Us dropdown --- */
.cert-contact{position:relative}
.cert-contact-btn{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:0 18px;border:0;border-radius:999px;background:var(--navy,#063475);color:#fff;font:700 12px "DM Sans",sans-serif;cursor:pointer;white-space:nowrap;transition:background .2s}
.cert-contact-btn:hover,.cert-contact-btn:focus-visible{background:var(--blue,#075ccb);outline:none}
.cert-contact-btn svg{transition:transform .2s}
.cert-contact.is-open .cert-contact-btn svg{transform:rotate(180deg)}
.cert-contact-panel{position:absolute;right:0;top:calc(100% + 12px);width:min(320px,92vw);padding:18px;background:#fff;border:1px solid var(--line,#dfe9f3);border-radius:14px;box-shadow:0 24px 50px #06347524;z-index:70;box-sizing:border-box}
.cert-contact-panel[hidden]{display:none}
.cc-title{margin:0 0 10px;font:800 15px Manrope,sans-serif;color:var(--navy,#063475)}
.cc-row{display:flex;align-items:center;gap:12px;padding:9px 10px;border-radius:10px;text-decoration:none;color:inherit;transition:background .2s}
.cc-row:hover,.cc-row:focus-visible{background:var(--ice,#eaf5ff);outline:none}
.cc-icon{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--ice,#eaf5ff);color:var(--blue,#075ccb)}
.cc-icon svg{width:18px;height:18px}
.cc-text{min-width:0}
.cc-text small{display:block;font-size:9px;font-weight:700;letter-spacing:1px;color:var(--muted,#5b6b80)}
.cc-text b{display:block;font-size:12px;font-weight:700;color:var(--navy,#063475);overflow-wrap:anywhere}
.cc-cta{display:flex!important;justify-content:center;width:100%;margin-top:12px;box-sizing:border-box}

/* --- page heading --- */
.cert-hero{padding:70px 5% 10px;text-align:center;background:radial-gradient(ellipse at 85% 20%,#d9efff 0,transparent 45%),linear-gradient(120deg,#f8fcff 0%,#fff 50%,#edf7ff 100%)}
.cert-hero .eyebrow{justify-content:center}
.cert-title{font-size:clamp(32px,4.2vw,50px);line-height:1.12;margin:0 0 16px}
.cert-lede{max-width:580px;margin:0 auto;font-size:14px;line-height:1.85;color:var(--muted,#5b6b80)}

/* --- certificates: small, readable cards; more cards sit side by side later --- */
.cert-list{padding:34px 5% 80px}
.cert-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),340px));justify-content:center;gap:28px}
.cert-card{margin:0;padding:12px;border:1px solid var(--line,#dfe9f3);border-radius:14px;background:#fff;box-shadow:0 18px 40px #0634750f}
.cert-thumb{position:relative;display:block;width:100%;padding:0;margin:0;border:1px solid #e3eef8;border-radius:8px;background:#fff;overflow:hidden;cursor:zoom-in;aspect-ratio:210/297;font:inherit;color:inherit;-webkit-user-select:none;user-select:none}
.cert-thumb.is-ready{aspect-ratio:auto}
.cert-thumb canvas{display:block;width:100%;height:auto;pointer-events:none}
.cert-thumb:focus-visible{outline:3px solid var(--blue,#075ccb);outline-offset:2px}
.cert-thumb-msg{position:absolute;inset:0;display:grid;place-items:center;padding:24px;text-align:center;font-size:12px;line-height:1.7;color:var(--muted,#5b6b80);background:var(--paper,#f6faff)}
.cert-thumb.is-ready .cert-thumb-msg{display:none}
.cert-zoom{position:absolute;right:10px;bottom:10px;padding:7px 12px;border-radius:20px;background:#063475e6;color:#fff;font-size:11px;font-weight:700;opacity:0;transition:opacity .2s}
.cert-thumb.is-ready:hover .cert-zoom,.cert-thumb.is-ready:focus-visible .cert-zoom{opacity:1}
@media(hover:none){.cert-thumb.is-ready .cert-zoom{opacity:1}}
.cert-card h2{margin:14px 4px 4px;font:800 15px/1.35 Manrope,sans-serif;letter-spacing:-.2px;text-align:center;color:var(--navy,#063475)}
.cert-caption{margin:0 4px 4px;font-size:11px;line-height:1.6;text-align:center;color:var(--muted,#5b6b80)}

/* --- larger view --- */
html.cert-lb-open{overflow:hidden}
.cert-lightbox{position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;background:#04142cf2}
.cert-lightbox[hidden]{display:none}
.cert-lb-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;color:#fff}
.cert-lb-bar p{margin:0;font:700 14px Manrope,sans-serif;color:#fff}
.cert-lb-close{flex:none;width:42px;height:42px;border-radius:50%;border:1px solid #ffffff40;background:#ffffff14;color:#fff;font-size:17px;cursor:pointer}
.cert-lb-close:hover,.cert-lb-close:focus-visible{background:#ffffff2b;outline:none;border-color:#48b7f4}
.cert-lb-body{flex:1;overflow:auto;padding:0 16px 28px;-webkit-overflow-scrolling:touch}
.cert-lb-pages{display:grid;gap:16px;justify-items:center}
.cert-lb-page{max-width:100%}
.cert-lb-page canvas{display:block;width:100%;height:auto;background:#fff;border-radius:4px;box-shadow:0 20px 50px #0008;-webkit-user-select:none;user-select:none}
.cert-lb-msg{color:#cfe6fa;text-align:center;font-size:13px;line-height:1.7;padding:40px 10px;margin:0}

/* --- footer (v5) ---
   Same colours as the index.html footer:
   light ice-blue background, thin top line, logo shown on its own
   (no white box), navy text, small grey-blue copyright. */
.cert-footer{padding:26px 7% 20px;background:linear-gradient(180deg,#f5faff 0%,#eaf4fc 100%);border-top:1px solid #e2edf6;color:#60768b}
.cert-footer-inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:22px;max-width:none;margin:0 auto}
.cert-footer-brand{display:inline-flex;align-items:center}
.cert-footer-logo{display:block;height:64px;width:auto;max-width:min(46vw,300px);object-fit:contain;padding:0!important;border-radius:0!important;background:none!important;box-shadow:none!important}
.cert-footer-links{display:flex;flex-wrap:wrap;gap:10px 24px;font-size:12px;font-weight:700}
.cert-footer-links a{color:var(--navy,#063475);text-decoration:none;transition:color .2s}
.cert-footer-links a:hover,.cert-footer-links a:focus-visible{color:var(--blue,#075ccb);text-decoration:underline;text-underline-offset:3px;outline:none}
.cert-social{display:flex;gap:10px}
.cert-social a{display:grid;place-items:center;width:42px;height:42px;border-radius:10px;background:#fff;border:1px solid #dbe8f3;color:var(--navy,#063475);box-shadow:0 6px 16px #0634750d;transition:background .2s,color .2s,border-color .2s,transform .2s}
.cert-social a:hover,.cert-social a:focus-visible{background:var(--blue,#075ccb);border-color:var(--blue,#075ccb);color:#fff;transform:translateY(-2px);outline:none}
.cert-social svg{width:19px;height:19px}
.cert-footer-copy{margin:22px auto 0;padding-top:16px;border-top:1px solid #dce9f4;font-size:10px;text-align:center;color:#8094a7}

@media(max-width:1050px){
  .cert-footer{padding-left:5%;padding-right:5%}
  .cert-footer-logo{height:58px}
}

/* --- phones --- */
@media(max-width:720px){
  .cert-body .site-header{min-height:70px;gap:8px}
  .cert-body .brand-logo{height:46px}
  .cert-body .site-header .menu-toggle{display:inline-flex}
  .cert-body .site-header .nav{display:none;position:absolute;top:100%;left:0;right:0;flex-direction:column;align-items:stretch;gap:16px;padding:20px 5%;background:#fff;border-bottom:1px solid var(--line,#dfe9f3);box-shadow:0 18px 30px #06347514;font-size:13px}
  .cert-body .site-header .nav.open{display:flex}
  .cert-contact-btn{min-height:38px;padding:0 14px;font-size:11px}
  .cert-contact-panel{position:fixed;top:78px;right:4%;left:4%;width:auto}
  .cert-hero{padding-top:48px}
  .cert-footer{padding:24px 6% 18px}
  .cert-footer-inner{flex-direction:column;text-align:center}
  .cert-footer-logo{height:52px;max-width:62vw}
  .cert-footer-links{justify-content:center}
  .cert-footer-copy{font-size:9px}
}

/* Fix: date box overflowing its card on phones (iPhone Safari) */
input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
}
input[type="date"]::-webkit-calendar-picker-indicator {
  margin-left: auto;
}
/* Stop form columns stretching wider than the card */
form > *, form label, form div {
  min-width: 0;
}

/* Owner name in the Contact Us menu */
.eg-owner {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 8px 0 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(120, 140, 170, 0.10);
}
.eg-owner-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
}
.eg-owner-name {
  font-size: 15px;
  font-weight: 700;
}
/* Waiting for a destination */
.eg-await > * {
  filter: blur(4px);
  opacity: 0.3;
  pointer-events: none;
  transition: opacity .3s, filter .3s;
}
.eg-await::after {
  content: attr(data-eg-msg);
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  background: rgba(10, 30, 70, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  z-index: 5;
  max-width: 85%;
}
