
:root{--bg:#0a1a2f;--bg2:#0f2746;--text:#e9eef6;--muted:#c8d3e4;--chip:#182b46;--brand:#ff9500}
*{box-sizing:border-box} html,body{height:100%}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;color:var(--text);background:var(--bg);min-height:100vh;display:flex;flex-direction:column}
a{color:inherit}
/* Header */
.site-header{position:sticky;top:0;z-index:50;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 20px;background:rgba(10,26,47,.9);border-bottom:1px solid rgba(255,255,255,.08)}
.brand{display:flex;align-items:center;gap:12px}
.site-header .logo img{max-height:70px;width:auto;display:block}
.ticker{margin-left:10px;padding:6px 10px;border-radius:999px;background:var(--chip);font-weight:800}
.nav{display:flex;gap:24px}.nav a{text-decoration:none;font-weight:800;letter-spacing:.3px}
/* Hero */
.hero{position:relative;flex:0 0 auto;background-size:cover;background-position:center;background-repeat:no-repeat}
.hero .hero-img{display:block;width:100%;height:auto;opacity:0}
.hero::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(to top, rgba(10,26,47,.55) 0%, rgba(10,26,47,.25) 35%, rgba(10,26,47,0) 55%)}
.home .hero .hero-inner{position:absolute;left:32px;right:32px;top:clamp(24px,16vh,220px);z-index:2}
h1{margin:0 0 12px 0;font-size:clamp(28px,6vw,56px);line-height:1.05;font-weight:900}
.sub{color:var(--muted);max-width:800px;font-size:18px}
/* Buttons */
.btn-row{display:flex;gap:14px;flex-wrap:wrap;margin-top:20px}
.btn{display:inline-flex;align-items:center;justify-content:center;padding:12px 20px;border-radius:12px;text-decoration:none;font-weight:800;border:1px solid rgba(255,255,255,.12)}
.btn.primary{background:var(--brand);color:#fff;border:none}
.btn.ghost{background:#fff;color:#0a1a2f}
/* Sticky footer layout */
main{flex:1 0 auto;display:block}
.page{padding:40px 32px;max-width:1100px;margin:0 auto}
.hero-alt{position:relative;min-height:28vh;background:linear-gradient(180deg,#0f2746,#0a1a2f);border-bottom:2px solid rgba(255,149,0,.4);flex:0 0 auto}
.hero-alt .hero-inner{padding:24px 32px}
.site-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:16px 20px;background:#0c213b;border-top:1px solid rgba(255,255,255,.08);font-size:14px;flex-shrink:0}
.footer-legal{width:100%;text-align:center;color:#a9b7c9;font-size:12px;margin-top:6px}
/* HIW + metrics */
.hiw-steps{padding:40px 32px;max-width:1100px;margin:0 auto}
.hiw-title{font-size:32px;margin:0 0 6px 0}.hiw-sub{color:var(--muted);margin:0 0 18px 0}
.hiw-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;counter-reset:hiwstep}
.hiw-card{background:var(--bg2);border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:18px;position:relative}
.hiw-card::before{counter-increment:hiwstep;content:counter(hiwstep);position:absolute;top:-10px;left:-10px;width:28px;height:28px;border-radius:999px;display:grid;place-items:center;background:var(--brand);color:#0a1a2f;font-weight:900;font-size:14px}
.hiw-icon{width:52px;height:52px;border-radius:12px;background:rgba(255,149,0,.12);color:var(--brand);display:grid;place-items:center;margin-bottom:8px}
.hiw-icon svg{width:28px;height:28px}
.hiw-card h3{margin:6px 0 8px 0;font-size:18px}.hiw-card p{margin:0;color:var(--muted);font-size:14.5px}
.metrics{max-width:1100px;margin:16px auto 40px;padding:0 32px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.metric{background:var(--bg2);border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:18px;text-align:center}
.metric-num{font-size:28px;font-weight:900;color:var(--brand);line-height:1}.metric-label{margin-top:6px;color:var(--muted);font-size:14px}
/* News feed */
#news-feed{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px;margin-top:16px}
.news-card{background:#0f2746;border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:16px}
.news-row{display:flex;align-items:center;gap:8px}.news-row .favicon{border-radius:4px;flex:0 0 auto}
.news-card a{color:#e9eef6;text-decoration:none;font-weight:700}.news-card a:hover{text-decoration:underline}
.news-card .date{color:#a9b7c9;font-size:12px;margin-top:6px}
/* Mobile */
@media(max-width:960px){.hiw-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.site-header .logo img{max-height:48px}.nav{display:none}.home .hero .hero-inner{left:16px;right:16px;top:clamp(16px,12vh,160px)}.btn-row{flex-direction:column}.btn{width:100%}.hiw-grid{grid-template-columns:1fr}}

/* --- Sticky Footer + Hero (merged) --- */
html, body { height: 100%; }
.body-wrap { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }

/* Footer normalization */
.site-footer { 
  flex-shrink: 0; padding: 16px 40px; background: #0a1a2f; color: #cdd7e3;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.site-footer a { color: #cdd7e3; text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* HERO */
.hero {
  position: relative;
  min-height: clamp(420px, 65vh, 820px);
  background-image: url("assets/hero-home.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.55));
}
.hero__inner {
  position: relative; z-index: 1; text-align: center; padding: 2rem; color: #fff; max-width: 1100px;
}
.hero__inner h1 { font-size: clamp(28px, 6vw, 64px); line-height: 1.05; margin: 0 0 0.5rem; letter-spacing: 0.5px; }
.hero__inner p { font-size: clamp(16px, 2.2vw, 22px); opacity: 0.95; margin: 0.75rem auto 1.5rem; max-width: 800px; }
.hero__cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-block; padding: 12px 18px; border-radius: 10px;
  background: #f2b705; color: #0a1a2f; font-weight: 700; text-decoration: none;
}
.btn--ghost { background: transparent; color: #fff; border: 2px solid #fff; }


/* Robust hero <img> fallback */
.hero { position: relative; }
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero__inner { position: relative; z-index: 1; }


/* --- Mobile Nav (dropdown) --- */
.site-header { position: relative; }
.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 2px solid rgba(255,255,255,.5);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  padding: 8px 12px;
  border-radius: 10px;
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav { 
    display: none;
    position: absolute;
    right: 16px; left: 16px; top: 64px;
    background: #0a1a2f;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 8px 22px rgba(0,0,0,.35);
    z-index: 50;
  }
  .nav.open { display: block; }
  .nav a {
    display: block;
    padding: 12px 8px;
    margin: 0;
    border-radius: 8px;
  }
  .nav a:hover { background: rgba(255,255,255,.06); }
}



/* Picture-based hero fallback compatibility */
picture.hero__bg { position:absolute; inset:0; display:block; z-index:0; }
.hero__inner { position: relative; z-index: 2; }
.hero::after { z-index: 1; }



/* --- Dashboard Grid --- */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.dash-grid .card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}
.dash-grid .card h3 {
  margin: 6px 6px 8px;
  font-size: 16px;
  color: #0a1a2f;
}
.dash-grid iframe {
  width: 100%;
  height: 280px;
  border: 0;
  border-radius: 10px;
  background: #f7f9fc;
}
@media (max-width: 980px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-grid iframe { height: 240px; }
}



/* --- Dashboard Grid (Chart.js) --- */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  overflow: hidden;
}
.card h3 {
  margin: 6px 6px 10px;
  font-size: 16px;
  color: #0a1a2f;
}
.card-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  display: block;
}
.card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
}
.card canvas {
  display: block;
  width: 100%;
  height: 240px !important;
  border-radius: 10px;
  background: #f7f9fc;
}
@media (max-width: 980px) {
  .dash-grid { grid-template-columns: 1fr; }
  .card canvas { height: 200px !important; }
}



/* Dashboard toolbar */
.dash-toolbar {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-toolbar label { font-weight: 700; color: #0a1a2f; }
.dash-toolbar select {
  padding: 6px 10px;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 8px;
  background: #fff;
}



/* Dashboard header row */
.dash-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.dash-head h2 {
  margin: 0;
  font-size: 20px;
  color: #0a1a2f;
}
.dash-toolbar {
  margin: 0;
}
.dash-toolbar label {
  margin-right: 6px;
}
@media (max-width: 640px) {
  .dash-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
/* Subtle card titles */
.dash-grid .card h3 {
  margin: 4px 6px 6px;
  font-size: 14px;
  font-weight: 700;
  color: #3a567a;
}



/* Value chips under charts */
.value-chip {
  margin: 8px 6px 2px;
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #0a1a2f;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2px;
}
.card-link .value-chip { background: #3a567a; }

