:root{--ink:#0f172a;--muted:#475569;--maxw:980px;--maxw-header:1200px}
*{box-sizing:border-box}

/* Base */
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--ink);
  line-height:1.55;

  /* default background (fallback) */
  background: url('comjet.png') no-repeat center center fixed;
  background-size: cover;

  /* shared background behavior */
  background-repeat:no-repeat;
  background-position:center center;
  background-attachment:fixed;
  background-size:cover;
}

a{color:rgb(11,110,165);text-decoration:none}
a:hover{text-decoration:underline}

/* Layout */
.header{border-bottom:1px solid rgba(255,255,255,0.35);background:transparent}

.header-grid{
  max-width:var(--maxw-header);
  margin:0 auto;
  padding:18px 16px;
  display:grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "brand nav"
    "tagline tagline";
  column-gap:22px;
  row-gap:10px;
  align-items:center;
}

.brand{grid-area:brand;display:flex;align-items:center;gap:16px;min-width:0}
.brand img{height:110px;width:auto;display:block}
.brand .name{
  font-weight:800;
  letter-spacing:.2px;
  font-size:40px;
  line-height:1.05;
  color:rgb(11,110,165);
}

.tagline-row{
  grid-area:tagline;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-width:0;
}

.tagline{
  color:rgba(11,110,165,.95);
  font-weight:650;
  font-size:18px;
  line-height:1.25;
  max-width:none;
  min-width:0;
}

.nav-toggle{
  display:none;
  align-items:center;
  gap:8px;
  background:rgba(255,255,255,0.55);
  border:1px solid rgba(11,18,32,0.15);
  border-radius:12px;
  padding:8px 10px;
  color:rgb(11,110,165);
  cursor:pointer;
  flex:0 0 auto;
}
.nav-toggle:focus{outline:2px solid rgba(11,110,165,0.35); outline-offset:2px}
.nav-toggle-icon{font-size:18px; line-height:1}
.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

.nav-links{
  grid-area:nav;
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  align-items:center;
  align-content:center;
  gap:10px 14px;
  min-width:0;
  padding-top:8px;
}
.nav-links a{
  color:rgb(11,110,165);
  text-decoration:none;
  font-weight:650;
  font-size:14px;
  white-space:nowrap;
  padding:5px 9px;
  border-radius:999px;
}
.nav-links a:hover{
  text-decoration:none;
  background:rgba(255,255,255,0.70);
}
.nav-links a:focus{outline:2px solid rgba(11,110,165,0.35); outline-offset:2px}
.nav-links a.active{
  background:rgba(255,255,255,0.88);
  font-weight:800;
}

main{max-width:var(--maxw);margin:0 auto;padding:28px 16px 56px}

/* Weather page: tighter spacing under header */
main.weather-page{padding-top:10px}
h1{font-size:30px;margin:0 0 14px}
h2{font-size:20px;margin:26px 0 10px}
p{margin:0 0 12px}
hr{border:none;border-top:1px solid #e5e7eb;margin:22px 0}

.footer{border-top:1px solid rgba(255,255,255,0.35);background:transparent;color:var(--muted);font-size:12px;padding:18px 16px}
.footer-inner{max-width:var(--maxw);margin:0 auto}

/* Content container (legacy pages rely on preserved line breaks) */
.text-block{white-space:pre-wrap}

/* Flowdown requirements list */
.req-list{margin:18px 0 0;padding-left:22px}
.req-list>li{margin:12px 0;line-height:1.6}
.req-list ul{margin:10px 0 0;padding-left:18px}

/* Footer navigation on ALL pages */
.footer-nav{
  display:flex;
  flex-wrap:wrap;
  gap:8px 10px;
  align-items:center;
  padding-bottom:10px;
}
.footer-nav a{
  color:rgba(11,110,165,.95);
  font-weight:700;
  text-decoration:none;
}
.footer-nav a:hover{text-decoration:underline}
.footer-sep{color:rgba(11,18,32,.35)}

/* Compact spacing for audience pages (Supply Chain Managers + Buyers) */
body.compact-page .text-block{ line-height:1.28; white-space:normal !important; }
body.compact-page p{ margin:0 0 6px; }
body.compact-page ul, body.compact-page ol{ margin:6px 0 10px; }
body.compact-page li{ margin:0; padding:0; }
body.compact-page ul li, body.compact-page ol li{ line-height:1.25; }
body.compact-page h1{ margin:6px 0 10px; }
body.compact-page h2{ margin:12px 0 6px; }

/* Site-wide tighter lists inside content */
.text-block ul,
.text-block ol{
  margin:6px 0 10px;
  padding-left:22px;
}
.text-block li{
  margin:0;
  padding:0;
  line-height:1.25;
}
.text-block li + li{ margin-top:2px; }

/* --- Page-specific background mappings (one shared CSS) --- */
body.bg-comjet{ background-image:url("comjet.png"); }
body.bg-bizjet{ background-image:url("bizjet.png"); }
body.bg-fighter{ background-image:url("fighter.png"); }
body.bg-helicopter{ background-image:url("helicopter.png"); }
body.bg-missile{ background-image:url("missile.png"); }

/* --- Option A: per-background contrast adjustment via overlay ---
   Uses ::after (not ::before) to avoid conflicts with any existing ::before rules.
*/
body::after{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
}

/* ensure content sits above background + overlay */
.header, main, .footer{ position:relative; z-index:1; }

/* tweak these opacities per image */
/*body.bg-comjet::after{ background: rgba(255,255,255,0.10); } */      /* slightly brighten */
/*body.bg-bizjet::after{ background: rgba(0,0,0,0.1); } */           /* slightly darken */
 
body.bg-comjet::after{ background: rgba(255,255,255,0.20); }      /* brighten */
body.bg-bizjet::after{ background: rgba(255,255,255,0.40); }      /* brighten */
body.bg-fighter::after{ background: rgba(255,255,255,0.40); }     /* brighten */
body.bg-helicopter::after{ background: rgba(255,255,255,0.60); }   /* brighten */
body.bg-missile::after{ background: rgba(255,255,255,0.40); }      /* brighten */

/* Turn off pre-wrap ONLY on the two new pages so HTML tags control spacing */
body.compact-page .text-block{
  white-space: normal !important;
}

body.compact-page p{ margin: 0 0 4px !important; }
body.compact-page h2{ margin: 8px 0 4px !important; }
body.compact-page ul, body.compact-page ol{ margin: 4px 0 6px !important; }
body.compact-page li{ line-height: 1.22 !important; }

/* THS adds the code below for Mobile Devices */

/* =====================================
   Mobile Optimization
   ===================================== */

@media (max-width: 900px){

  /* Background: disable fixed on mobile (important) */
  body{
    background-attachment: scroll;
  }

  /* Header grid + hamburger */
.header-grid{
  grid-template-columns: 1fr;
  grid-template-areas:
    "brand"
    "tagline"
    "nav";
  padding: 14px 16px;
  row-gap: 10px;
}

.tagline-row{
  align-items:flex-start;
}

.nav-toggle{display:inline-flex}

/* Collapsed by default */
.nav-links{
  display:none;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
  gap:6px;
  width:100%;
  padding:10px;
  border-radius:14px;
  border:1px solid rgba(11,18,32,0.12);
  background:rgba(255,255,255,0.75);
}
.header.nav-open .nav-links{display:flex}

.nav-links a{width:100%; padding:8px 10px; font-size:14px}

/* Reduce logo size */
  .brand img{ height: 76px; }

  /* Reduce brand text */
  .brand .name{ font-size: 30px; line-height: 1.1; }

  /* Byline: slightly smaller on mobile */
  .tagline{ font-size:13px; max-width:none; }

  /* Reduce page padding */
  main{
    padding: 18px 14px 40px;
  }

  /* Scale headings */
  h1{
    font-size: 24px;
  }

  h2{
    font-size: 18px;
    margin: 18px 0 8px;
  }

  /* Slightly tighter paragraph spacing */
  p{
    margin: 0 0 10px;
  }

  /* Improve text readability over background */
  .text-block{
    line-height: 1.5;
  }

}

/* Contact+Location combined page: tighter vertical spacing so it fits on one screen */
body.contact-page main{ padding-top:16px; padding-bottom:28px; }
body.contact-page h1{ margin:6px 0 10px; }
body.contact-page h2{ margin:10px 0 6px; }
body.contact-page p{ margin:0 0 8px; }
body.contact-page .text-block{ white-space:normal; }
