/* =========================================================
   Base Theme Variables
   ========================================================= */
:root{
  --brand-primary:#0A4FA3;
  --brand-secondary:#4D77C2;

  --neutral-bg:#f5f7fa;
  --ink:#222222;
  --legal:#666666;

  --card:#ffffff;
  --radius:18px;
  --shadow:0 12px 30px rgba(0,0,0,.08);

  --site-max:1100px;
  --site-pad:20px;
}

/* =========================================================
   Layout Containers
   ========================================================= */
.site-wrap{
  max-width:var(--site-max);
  margin:0 auto;
  padding:0 var(--site-pad);
}

/* Optional: page section spacing helper */
.section{
  padding:28px 0;
}

/* =========================================================
   Pillar Gradients (Card/Section Skins)
   ========================================================= */
.g-por{  background:linear-gradient(135deg,#0A4FA3,#4D77C2); color:#fff; }
.g-dcm{  background:linear-gradient(135deg,#BFC1C2,#E0E0E0); color:#222; }
.g-inj{  background:linear-gradient(135deg,#C9A43E,#F3D17B); color:#222; }
.g-mwp{  background:linear-gradient(135deg,#F06292,#F8BBD0); color:#fff; }
.g-hmb{  background:linear-gradient(135deg,#009C8C,#4FD1C5); color:#fff; }
.g-free{ background:linear-gradient(135deg,#6A1B9A,#9B59B6); color:#fff; }

html, body { height: 100%; }







/* =========================================================
   Reset-ish
   ========================================================= */
*{box-sizing:border-box}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,sans-serif;
  background:var(--neutral-bg);
  color:var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a{color:inherit;text-decoration:none}
a:hover{text-decoration:none}

/* =========================================================
   Header + Navigation
   ========================================================= */

.site-content{
  flex: 1 0 auto;   /* takes remaining height */
}

.site-header{
  background:linear-gradient(180deg,#F8FBFF,#ffffff);
  border-bottom:4px solid var(--brand-primary);
  position:relative;
}

.header-inner{
  max-width:var(--site-max);
  margin:0 auto;
  padding:18px 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.brand{
  font-weight:900;
  font-size:1.6rem;
  color:var(--brand-primary);
  line-height:1.15;
}

/* Desktop nav */
.nav{
  display:flex;
  align-items:center;
  gap:14px;
}

.nav a{
  color:var(--brand-primary);
  font-weight:750;
  opacity:.95;
  padding:8px 10px;
  border-radius:12px;
}

.nav a:hover{
  background:#f0f4ff;
  opacity:1;
}

/* Hamburger button (mobile only) */
.nav-toggle{
  display:none;
  background:transparent;
  border:0;
  padding:10px;
  border-radius:12px;
  cursor:pointer;
}
.nav-toggle:focus{
  outline:2px solid var(--brand-secondary);
  outline-offset:2px;
}
.nav-toggle-bar{
  display:block;
  width:28px;
  height:3px;
  background:var(--ink);
  margin:6px 0;
  border-radius:3px;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;

  padding:12px 18px;
  border-radius:14px;
  font-weight:900;
  font-size:1rem;
  line-height:1;

  border:1px solid #e6ecf6;
  background:#ffffff;
  color:var(--ink);

  cursor:pointer;
  white-space:nowrap;
}

.btn:hover{
  box-shadow:0 6px 18px rgba(0,0,0,.08);
}

.btn-primary{
  border:0;
  background:linear-gradient(135deg,var(--brand-primary),var(--brand-secondary));
  color:#ffffff;
}

.edit-btn{
    position:relative;
    top:1px;
    right:10px;

    padding:6px 12px;
    font-size:12px;
    font-weight:700;
    
    color:var(--midline-blue);

    border:0;                 /* remove border */
    border-radius:999px;     /*  pill */
    box-shadow:none;

    opacity:.75;
    z-index:1000;
    left: 48.5%;
    transform: translateX(-50%);
    background: none;
}

.edit-btn:hover{
  opacity:1;
  background:rgba(10,79,163,.14);
  text-decoration:none;
}
.edit-btn,
.edit-btn:focus,
.edit-btn:active{
  text-decoration: none !important;
}



/* =========================================================
   Generic "Card" Base (used by your lib.php widgets)
   ========================================================= */
.card{
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:24px;
}

/* Simple text helpers used across cards */
.eyebrow{
  font-weight:800;
  color:var(--brand-secondary);
  margin:0 0 10px;
  letter-spacing:.2px;
}

h1,h2,h3{color:var(--brand-primary); margin:0 0 12px;}
.subtitle{
  margin:0;
  color:var(--legal);
  font-size:1.05rem;
  line-height:1.55;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer{
  background:#F8FBFF;
  border-top:1px solid #e6ecf6;
}

.footer-inner{
  max-width:var(--site-max);
  margin:0 auto;
  padding:32px 22px;
  flex-shrink: 0;   /* footer keeps its natural height */
}

.footer-title{
  font-weight:900;
  color:var(--brand-primary);
}

.footer-note{
  margin-top:10px;
  color:var(--legal);
  font-size:.95rem;
}

.footer-copy{
  margin-top:14px;
  color:var(--legal);
  font-size:.9rem;
}

/* =========================================================
   Mobile Nav Collapse
   ========================================================= */
@media (max-width:900px){
  .brand{font-size:1.35rem}
  .nav-toggle{display:inline-block;}

  /* Hide nav until opened */
  .nav{
    display:none;
    position:absolute;
    left:0;
    right:0;
    top:100%;
    background:#ffffff;
    border-top:1px solid #e6ecf6;
    box-shadow:0 18px 40px rgba(0,0,0,.10);
    padding:12px 18px 16px;
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
    z-index:9999;
  }
  .nav.is-open{display:flex;}

  .nav a{
    width:100%;
    padding:12px 12px;
    border-radius:14px;
  }
}
