
/* Root theme (accessible NGO style). Adjust variables to re‑skin. */
:root{
  --brand: #12603a;      /* deep green */
  --brand-600:#0f5231;
  --accent: #FFD600;     /* yellow */
  --alert:  #D50707;     /* sharp red */
  --bg:     #f6f7f8;
  --card:   #ffffff;
  --text:   #101418;
  --muted:  #4b5563;
  --ring:   rgba(18,96,58,0.35);
  --shadow: 0 10px 30px rgba(16,20,24,0.08);
}
*{box-sizing:border-box}
html, body { min-height:100%; }
body{
  margin:0; font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, Noto Sans, "Apple Color Emoji", "Segoe UI Emoji";
  color:var(--text); background:var(--bg); line-height:1.6;
}
.container{width:min(1300px, 93%); margin-inline:auto}

/* Skip link */
.skip-link{
  position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  position:fixed; left:16px; top:16px; width:auto; height:auto; padding:.6rem .9rem; z-index:1000;
  background: var(--brand); color:#fff; border-radius:10px; outline:3px solid var(--accent);
}

/* Header */
.site-header{background:#fff; box-shadow:var(--shadow); position:sticky; top:0; z-index:900}
.header-inner{display:flex; align-items:center; justify-content:space-between; padding:4px 0}
.brand{display:inline-flex; align-items:center; gap:8px; color:var(--text); text-decoration:none; font-weight:700}
.brand-mark{display:grid; place-items:center; width:34px; height:34px; background:var(--brand); color:#fff; border-radius:8px}
.brand-text{letter-spacing:.2px}

/* Main nav */
.nav-toggle{display:none}
.nav-list{display:flex; gap:10px; list-style:none; margin-left:100px; padding:0}
.nav-list a{display:inline-block; padding:.6rem .9rem; text-decoration:none; color:var(--text); border-radius:12px}
.nav-list a:hover,.nav-list a:focus{background:#f0f2f3}
.nav-list a.active{background:var(--brand); color:#fff}
.nav-list a{ white-space: nowrap; }
.nav-list{
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;/* Firefox: hide scrollbar */
}
.nav-list::-webkit-scrollbar{ display:none; }  /* WebKit: hide scrollbar */
/* Base: hide the dropdown on desktop */
.subtab-select{ display:none; }


/* Hero */
.hero{background:linear-gradient(180deg, #ffffff 0%, #eef3ee 100%); border-bottom:1px solid #e5e7eb}
.hero-inner{padding:28px 0 18px 0; text-align:center}
.hero-title{font-size:clamp(1.6rem, 2.8vw, 2.2rem); margin:0 0 6px 0}
.hero-subtitle{margin:0; color:var(--muted); font-weight:600}

/* Subtabs */
.subtabs{position:static; top:41px; z-index:800; display:flex; gap:10px; justify-content:center; padding:10px; background:#e8eee9; border-bottom:1px solid #dfe6e1}
.subtab-link{appearance:none; border:0; background:#fff; color:var(--text); padding:.55rem .9rem; border-radius:12px; cursor:pointer; font-weight:600}
.subtab-link:hover, .subtab-link:focus{outline:none; box-shadow:0 0 0 3px var(--ring)}
.subtab-link.active{background:var(--brand); color:#fff}

/* Cards */
.cards{display:grid; grid-template-columns: repeat(3, 1fr); gap:16px; margin:10px 0 5px}
.card{background:var(--card); border-radius:16px; padding:16px; box-shadow:var(--shadow)}
.card h3{margin-top:4px; margin-bottom:6px}
.card p{margin:0; text-align: justify;color:var(--muted)}
/* Footer */
.site-footer{border-top:1px solid #e5e7eb; margin-top:0px; background:#fff}
.footer-inner{padding:18px 0; text-align:center; color:var(--muted)}

/* Utilities */
.visually-hidden{position:absolute; left:-9999px}

/* High-contrast focus for a11y */
:focus-visible{outline:3px solid var(--accent); outline-offset:3px}

/* Brand container (the <a> tag) */
/* Brand (link) */
.site-header{
  display:flex;
  align-items:center;
  gap:16px;
  /* make header span the full viewport width, ignoring centered container */
  width:100vw;
  position:relative;
  left:50%;
  right:50%;
  margin-left:-50vw;
  margin-right:-50vw;
  box-sizing:border-box;
  padding:12px 20px;   /* keep some breathing room */
  justify-content:flex-start; /* brand sticks left */
}

/* brand + logo */
.brand{display:flex;align-items:center;gap:50px;text-decoration:none;margin:0;}
.brand-mark{display:block; width:clamp(40px, 16vw, 120px); height:auto;}
.brand-text{font-weight:700;font-size:clamp(1.05rem,2.2vw,1.5rem);color:#0f172a;}
/* ... your existing styles above ... */

/* Make header full-bleed (escapes centered container) */
.full-bleed{
  width:100vw;
  position:relative;
  left:50%;
  right:50%;
  margin-left:-50vw;
  margin-right:-50vw;
  box-sizing:border-box;
  padding-left:16px;  /* space from true screen edge */
  padding-right:16px;
}

/* Ensure any container rules don't re-center the header */
.dashboard-container header,
.dashboard-container > header,
.dashboard-container .site-header{
  max-width:none;
  margin:0;
  padding-left:0; /* overridden by .full-bleed padding */
}

/* Optional: avoid horizontal scrollbars with full-bleed sections */
html, body { overflow-x:hidden; }
/* BI hover hint overlay (on top of the iframe) */
.bi-wrap { position: relative; }

.bi-wrap::before {
  content: "i";
  position: absolute;
  top: 60px;
  right: 10px;
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  background: rgba(0,0,0,.75);
  color: #fff;
  display: grid;
  place-items: center;
  font: 700 10px/1 system-ui, sans-serif;
  z-index: 9999;
  pointer-events: none; /* don’t block clicks */
  opacity: 0.9;
}

.bi-wrap:hover::after {
  content: "Tip: Hover points inside the report to see details. Cumulative data is running total";
  position: absolute;
  top: 60px;
  right: 42px;
  background: rgba(0,0,0,.85);
  color: #fff;
  padding: 8px 10px;
  border-radius: 8px;
  font: 12px/1.3 system-ui, sans-serif;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
  z-index: 9999;
  pointer-events: none;
  white-space: nowrap;
}
.contact-head { display:flex; align-items:center; gap:12px; margin:8px 0 12px; }
.contact-photo {
  width:96px; height:96px; border-radius:50%;
  object-fit:cover; display:block;
  border:3px solid var(--brand);
  box-shadow: var(--shadow);
}
.contact-body{ display:flex; align-items:flex-start; gap:14px; margin-top:8px; }
.contact-photo{
  width:96px; height:96px; border-radius:50%;
  object-fit:cover; border:3px solid var(--brand); box-shadow:var(--shadow);
  flex-shrink:0;
}
.contact-info p{ margin:0 0 6px; }
.leadership-card .leader-header{
  display:grid;
  grid-template-columns:64px 1fr;
  align-items:center;
  gap:12px;
  margin-top:6px;
  margin-bottom:10px;
}
.leader-photo{
  width:64px; height:64px;
  border-radius:50%; object-fit:cover;
  box-shadow:0 2px 8px rgba(0,0,0,.08);
}
.leader-label{
  display:block; font-size:.78rem; text-transform:uppercase;
  letter-spacing:.04em; color:var(--muted);
}
.leader-name{ display:block; font-weight:700; }
.leader-qual{ display:block; color:var(--muted); font-size:.9rem; }
.leader-desc{ margin:0; text-align:justify; }

.contact-card { display:flex; flex-direction:column; }

.contact-actions{
  display:flex; gap:10px; justify-content:center;
  margin-top:12px; margin-bottom:10px;
}
.icon-btn{
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; border-radius:50%;
  background:#12603a; color:#fff; text-decoration:none;
  box-shadow:0 2px 8px rgba(0,0,0,.08);
  transition:transform .12s ease, box-shadow .12s ease;
}
.icon-btn:hover{ transform:translateY(-2px); box-shadow:0 6px 20px rgba(0,0,0,.12); }
.icon-btn img{ width:20px; height:20px; filter:invert(1); }

.icon-btn.whatsapp{ background:#25D366; }
.icon-btn.linkedin{ background:#0A66C2; }

.contact-card .card-logo{
  width:300px; height:auto; margin-top:auto; align-self:center;border-width: 2px;          /* thin | medium | thick or px */
  border-style: solid;        /* required for border to show */
  border-color: #12603a; 
}
.bi-wrap{ 
    position:relative; 
    width:100%; 
    border-radius:14px; 
    overflow:hidden; 
    box-shadow:var(--shadow); 
    background:var(--card); 
    height: var(--pbi-height, 980px)!important;     /* total height you control */ 
    margin:14px 0 6px; /* minimal gap below */ } 
    .bi-wrap iframe{ 
    width:100%; 
    height:100%; 
    border:0; 
    display:block; 
    position:relative; /* add */ 
    z-index:0 !important;
    pointer-events:auto;
    isolation:auto !important;
    }

.bi-bottom-cover{ position:absolute; left:0; right:0; bottom:0; 
 height:80px !important; /* was 56–68; 44 is tighter */ background:var(--card); z-index:2147483647; pointer-events:none; transform:translateZ(0);}
 /* Text label on the overlay */
.bi-bottom-cover::after{
  content: "Powered by BI";
  position: absolute;
  right: 12px;
  bottom: 12px;
  font: 1100 clamp(10px, 2.6vw, 12px)/1.2 system-ui, sans-serif;
  color: var(--muted);font-weight: 700;
  background: rgba(255,255,255,0.85); /* readable on any chart */
  padding: 6px 10px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  pointer-events: none;              /* don't block taps */
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}


/* ==== MOBILE RESPONSIVE TWEAKS ==== */

/* Tiny phones — iPhone SE & similar (≤500px) */
@media (max-width: 500px){
  /* Header/brand compaction */
  .site-header{ padding:10px 12px; }
  .brand{ gap:10px; }                 /* tighter gap */
  .brand-mark{ width:64px; }          /* small but readable logo */
  .brand-text{ font-size:.7rem; }

  /* Main nav: stay right, never wrap; side-scroll if needed */
  .nav-list{
    flex-wrap:nowrap;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .nav-list::-webkit-scrollbar{ display:none; }
  .nav-list a{ white-space:nowrap; padding:.5rem .7rem; font-size:.9rem; }

  /* Subtabs row: right-aligned, no stacking */
  .subtabs, .pill-tabs, .pbi-subtabs{
    justify-content:flex-end;
    flex-wrap:nowrap;
    gap:8px;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .subtabs::-webkit-scrollbar,
  .pill-tabs::-webkit-scrollbar,
  .pbi-subtabs::-webkit-scrollbar{ display:none; }
  .subtabs a, .pill-tabs a, .pbi-subtabs a{
    white-space:nowrap; padding:8px 10px; font-size:.9rem;
  }

  /* Power BI frame height tuned for small screens */
   .bi-bottom-cover{ height:56px !important; }
  .bi-bottom-cover::after{ font-size:10px; padding:4px 8px; }
  .bi-wrap{ height: 330px !important; }
  .bi-wrap iframe { pointer-events: auto !important; }
  
  .cards, .card-grid, .updates-grid{
    grid-template-columns: 1fr !important;
    gap:10px !important;
  }
  .card{ padding:10px 12px; }
  .cards .card h3{ font-size: 0.7rem !important; }
  .cards .card p,
  .cards .card li,
  .cards .panel p{ font-size: 0.6rem !important; }
  .nav-toggle{display:inline-flex; align-items:center;}

  /* hide inline menu; turn it into dropdown */
.nav-list{
  display: none;                               /* overrides desktop display:flex */
  position: absolute; right:16px; top:64px;
  flex-direction: column;
  background:#fff; padding:10px; border-radius:12px; box-shadow:var(--shadow);
  margin-left: 0; /* cancel the desktop margin-left:100px on mobile */
}

.nav-list.show{ display: flex; }
/* Keep dropdown within screen on iPhone SE */
.subtab-select{
  display:block !important;
  width: calc(100vw - 95px);   /* full width minus 12px gutters */
  max-width: 100%;
  margin: 8px auto;            /* center */
  box-sizing: border-box;
  font-size: 0.7rem;          /* slightly smaller to reduce menu width */
}

/* Prevent the menu from expanding due to long labels */
.subtab-select option{
  display:block;
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
/* Hero — iPhone SE portrait */
.hero-inner{ padding:12px 0 8px; }
.hero-title{ font-size:1.15rem; line-height:1.2; margin:4px 0; }
.hero-subtitle{ font-size:.85rem; line-height:1.35; margin:0; }
.bi-wrap::before{ content:none !important; }   /* hide the "i" badge */
.bi-wrap::after{ content:none !important; } 
.footer-inner p{ margin:4px 0; word-break:break-word; hyphens:auto; }
 .footer-inner a{ display:inline-block; margin:2px 6px; } /* neat link*/

nav.subtabs { display:none !important; }
}


/* Iphone 14 Pro Land Scape */
@media (orientation: landscape) and (max-height: 500px){
  /* Header compaction */
  .site-header{ padding:8px 12px; }
  .brand{ gap:8px; }
  .brand-mark{ width:52px; }
  .brand-text{ font-size:.8rem; }

   /* Hero */
  .hero-inner{ padding:8px 0 6px; }
  .hero-title{ font-size:1.05rem; line-height:1.2; margin:4px 0; }
  .hero-subtitle{ font-size:.8rem; line-height:1.3; margin:0; }

  /* Power BI frame (shorter landscape height) */
  .bi-wrap{ height:700px !important; }
  .bi-bottom-cover{ height:50px !important; }
  .bi-bottom-cover::after{ font-size:10px; padding:4px 8px; }
  .bi-wrap::before,
  .bi-wrap::after{ content:none !important; }
  .bi-wrap iframe { pointer-events: none !important; }
  .bi-wrap { pointer-events: auto !important; }

  /* Cards: 2-up grid in landscape */
  .cards, .card-grid, .updates-grid{
    grid-template-columns: repeat(2, 1fr) !important;
    gap:10px !important;
  }

  /* Footer */
   .footer-inner{ padding:8px 10px; font-size:.8rem; line-height:1.3; }
  .card{ padding:10px 12px; }
  .cards .card h3{ font-size: 0.7rem !important; }
  .cards .card p,
  .cards .card li,
  .cards .panel p{ font-size: 0.6rem !important; }
}


/* Samsung  Landscape*/
@media (orientation: landscape) and (max-height: 420px){
  /* Header compaction */
  .site-header{ padding:8px 12px; }
  .brand{ gap:8px; }
  .brand-mark{ width:52px; }
  .brand-text{ font-size:.8rem; }

   /* Hero */
  .hero-inner{ padding:8px 0 6px; }
  .hero-title{ font-size:1.05rem; line-height:1.2; margin:4px 0; }
  .hero-subtitle{ font-size:.8rem; line-height:1.3; margin:0; }

  /* Power BI frame (shorter landscape height) */
  .bi-wrap{ height:660px !important; }
  .bi-bottom-cover{ height:56px !important; }
  .bi-bottom-cover::after{ font-size:10px; padding:4px 8px; }
  .bi-wrap::before,
  .bi-wrap::after{ content:none !important; }

  /* Cards: 2-up grid in landscape */
  .cards, .card-grid, .updates-grid{
    grid-template-columns: repeat(2, 1fr) !important;
    gap:10px !important;
  }

  /* Footer */
   .footer-inner{ padding:8px 10px; font-size:.8rem; line-height:1.3; }
  .card{ padding:10px 12px; }
  .cards .card h3{ font-size: 0.7rem !important; }
  .cards .card p,
  .cards .card li,
  .cards .panel p{ font-size: 0.6rem !important; }
}
/* Small phones — landscape (short screens) */
@media (orientation: landscape) and (max-height: 400px){
  /* Header compaction */
  .site-header{ padding:8px 12px; }
  .brand{ gap:8px; }
  .brand-mark{ width:52px; }
  .brand-text{ font-size:.8rem; }

  /* Main nav → hamburger + dropdown */
  .nav-toggle{ display:inline-flex; align-items:center; }
  .nav-list{
    display:none;
    position:absolute; right:16px; top:56px;
    flex-direction:column;
    background:#fff; padding:10px; border-radius:12px; box-shadow:var(--shadow);
    margin-left:0;
  }
  .nav-list.show{ display:flex; }

  /* Subtabs → use select; hide pills */
  nav.subtabs{ display:none !important; }
  .subtab-select{
    display:block !important;
    width: calc(100vw - 80px);
    max-width:100%;
    margin:8px auto;
    box-sizing:border-box;
    font-size:.85rem;
  }
  .subtab-select option{
    display:block; max-width:100%;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  }

  /* Hero */
  .hero-inner{ padding:8px 0 6px; }
  .hero-title{ font-size:1.05rem; line-height:1.2; margin:4px 0; }
  .hero-subtitle{ font-size:.8rem; line-height:1.3; margin:0; }

  /* Power BI frame (shorter landscape height) */
  .bi-wrap{ height:500px !important; }
  .bi-bottom-cover{ height:60px !important; }
  .bi-bottom-cover::after{ font-size:10px; padding:4px 8px; }
  .bi-wrap::before,
  .bi-wrap::after{ content:none !important; }

  /* Cards: 2-up grid in landscape */
  .cards, .card-grid, .updates-grid{
    grid-template-columns: repeat(2, 1fr) !important;
    gap:10px !important;
  }

  /* Footer */
   .footer-inner{ padding:8px 10px; font-size:.8rem; line-height:1.3; }
  .card{ padding:10px 12px; }
  .cards .card h3{ font-size: 0.7rem !important; }
  .cards .card p,
  .cards .card li,
  .cards .panel p{ font-size: 0.6rem !important; }
}




  


















