/* EGMP Pharma theme */
:root {
  --egmp-brand: #006B3E;
  --egmp-brand-2: #0A7A49;
  --egmp-accent: #8FC74A;
  --egmp-dark: #003F28;
  --egmp-ink: #363333;
  --egmp-muted: #66736C;
  --egmp-paper: #FBFCFA;
  --egmp-wash: #EEF6F0;
  --egmp-line: #D9E7DD;
  --egmp-shadow: 0 20px 60px rgba(8, 50, 34, .12);
  --egmp-radius: 24px;
  --egmp-container: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--egmp-ink); background: var(--egmp-paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--egmp-brand); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: var(--egmp-dark); }
button, input, textarea, select { font: inherit; }
.egmp-container { width: min(var(--egmp-container), calc(100% - 40px)); margin-inline: auto; }
.egmp-narrow { max-width: 840px; }
.egmp-shell { padding: clamp(64px, 9vw, 112px) 0; }
.egmp-site-main { min-height: 60vh; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus, .egmp-skip-link:focus { clip: auto; height: auto; width: auto; margin: 0; padding: 12px 16px; left: 12px; top: 12px; background: #fff; color: #000; z-index: 99999; }
.egmp-topbar { background: var(--egmp-dark); color: #dff3e7; font-size: .82rem; }
.egmp-topbar-inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.egmp-topbar a { color: inherit; text-decoration: none; }
.egmp-topbar-links { display: flex; gap: 18px; }
.egmp-site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--egmp-line); backdrop-filter: blur(14px); }
.admin-bar .egmp-site-header { top: 32px; }
.egmp-header-inner { min-height: 88px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.egmp-logo-wrap .custom-logo { max-height: 68px; width: auto; }
.egmp-brand-logo-image img { width: auto; height: 68px; object-fit: contain; }
.egmp-brand-fallback { color: var(--egmp-dark); display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.egmp-brand-mark { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(145deg, var(--egmp-brand), var(--egmp-brand-2)); color: #fff; font-weight: 900; font-size: 1.5rem; }
.egmp-brand-copy { display: grid; line-height: 1.05; }
.egmp-brand-copy strong { font-size: 1.15rem; letter-spacing: -.03em; }
.egmp-brand-copy small { max-width: 260px; color: var(--egmp-muted); font-size: .67rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.egmp-primary-nav { justify-self: end; }
.egmp-menu, .egmp-menu ul { list-style: none; margin: 0; padding: 0; }
.egmp-menu { display: flex; align-items: center; gap: 22px; }
.egmp-menu > li { position: relative; }
.egmp-menu a { color: #30483d; text-decoration: none; font-size: .9rem; font-weight: 750; }
.egmp-menu a:hover, .egmp-menu .current-menu-item > a, .egmp-menu .current-menu-ancestor > a { color: var(--egmp-brand); }
.egmp-menu .sub-menu { min-width: 240px; display: none; position: absolute; top: calc(100% + 16px); left: -18px; background: #fff; border: 1px solid var(--egmp-line); border-radius: 16px; padding: 10px; box-shadow: var(--egmp-shadow); }
.egmp-menu li:hover > .sub-menu, .egmp-menu li:focus-within > .sub-menu { display: grid; }
.egmp-menu .sub-menu a { display: block; padding: 10px 12px; border-radius: 9px; }
.egmp-menu .sub-menu a:hover { background: var(--egmp-wash); }
.egmp-header-cta, .egmp-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 18px; border-radius: 999px; background: var(--egmp-brand); color: #fff; font-weight: 800; text-decoration: none; border: 1px solid var(--egmp-brand); }
.egmp-header-cta:hover, .egmp-button:hover { background: var(--egmp-dark); color: #fff; }
.egmp-button-outline { background: transparent; color: var(--egmp-brand); }
.egmp-menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--egmp-line); border-radius: 13px; background: #fff; padding: 11px; }
.egmp-menu-toggle span:not(.screen-reader-text) { display: block; height: 2px; background: var(--egmp-dark); margin: 5px 0; }
.egmp-page-header { margin-bottom: 36px; }
.egmp-page-header h1, .egmp-prose-page h1, .egmp-404 h1 { margin: 0; color: var(--egmp-dark); font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: .98; letter-spacing: -.055em; }
.egmp-kicker { margin: 0 0 12px; color: var(--egmp-brand); font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.egmp-entry-content { font-size: 1.06rem; }
.egmp-entry-content > * + * { margin-top: 1.4em; }
.egmp-entry-content h2, .egmp-entry-content h3 { color: var(--egmp-dark); line-height: 1.15; letter-spacing: -.025em; }
.egmp-entry-content h2 { margin-top: 2em; font-size: clamp(1.8rem, 4vw, 3rem); }
.egmp-entry-content blockquote { margin: 2em 0; padding: 18px 22px; border-left: 4px solid var(--egmp-accent); background: var(--egmp-wash); }
.egmp-featured-image { overflow: hidden; margin: 0 0 44px; border-radius: var(--egmp-radius); }
.egmp-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.egmp-card { overflow: hidden; background: #fff; border: 1px solid var(--egmp-line); border-radius: 20px; }
.egmp-card-media { display: block; aspect-ratio: 16/10; overflow: hidden; }
.egmp-card-media img { width: 100%; height: 100%; object-fit: cover; }
.egmp-card-body { padding: 22px; }
.egmp-card h2 { margin: 0 0 10px; font-size: 1.35rem; line-height: 1.15; }
.egmp-card h2 a { color: var(--egmp-dark); text-decoration: none; }
.egmp-card p:last-child { margin-bottom: 0; }
.egmp-404 { text-align: center; }
.egmp-404 .egmp-button-row { margin-top: 28px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.egmp-site-footer { background: #061f17; color: #a9c3b5; padding: 60px 0 24px; }
.egmp-site-footer .egmp-brand-fallback { color: #fff; }
.egmp-site-footer .egmp-brand-copy small { color: #9fb9ac; }
.egmp-footer-grid { display: grid; grid-template-columns: 1.35fr repeat(6, 1fr); gap: 32px; }
.egmp-footer-brand p { max-width: 420px; font-size: .88rem; }
.egmp-footer-col h2 { margin: 0 0 14px; color: #fff; font-size: .83rem; text-transform: uppercase; letter-spacing: .08em; }
.egmp-footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.egmp-footer-menu a { color: #b8d0c3; text-decoration: none; font-size: .86rem; }
.egmp-footer-menu a:hover { color: #fff; }
.egmp-footer-bottom { margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 28px; font-size: .75rem; }

@media (max-width: 1120px) {
  .egmp-header-cta { display: none; }
  .egmp-header-inner { grid-template-columns: auto 1fr; }
  .egmp-footer-grid { grid-template-columns: 2fr repeat(3,1fr); }
}
@media (max-width: 900px) {
  .admin-bar .egmp-site-header { top: 46px; }
  .egmp-menu-toggle { display: block; justify-self: end; }
  .egmp-header-inner { grid-template-columns: 1fr auto; position: relative; }
  .egmp-primary-nav { display: none; position: absolute; top: calc(100% + 1px); left: 0; right: 0; background: #fff; border: 1px solid var(--egmp-line); border-radius: 0 0 18px 18px; box-shadow: var(--egmp-shadow); padding: 16px 20px 22px; }
  .egmp-primary-nav.is-open { display: block; }
  .egmp-menu { display: grid; gap: 2px; }
  .egmp-menu a { display: block; padding: 10px 0; }
  .egmp-menu .sub-menu { position: static; display: grid; box-shadow: none; border: 0; padding: 0 0 0 16px; }
  .egmp-post-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .egmp-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .egmp-container { width: min(var(--egmp-container), calc(100% - 26px)); }
  .egmp-topbar { display: none; }
  .egmp-header-inner { min-height: 70px; }
  .egmp-brand-copy small { display: none; }
  .egmp-brand-mark { width: 44px; height: 44px; }
  .egmp-post-grid, .egmp-footer-grid { grid-template-columns: 1fr; }
  .egmp-footer-bottom { flex-direction: column; }
}

/* EGMP v2 editorial refinements */
body{font-size:16px;background:#FBFCFA}.egmp-site-header{background:rgba(251,252,250,.97);border-bottom-color:rgba(0,107,62,.12)}.egmp-topbar{background:#003F28}.egmp-menu a{font-weight:720;letter-spacing:-.01em}.egmp-header-cta{background:#8FC74A;border-color:#8FC74A;color:#16321f}.egmp-header-cta:hover{background:#006B3E;border-color:#006B3E;color:#fff}.egmp-site-footer{background:#002F1E}.egmp-footer-col h2{color:#fff}.egmp-footer-menu a{color:#c9ddd1}.egmp-footer-menu a:hover{color:#8FC74A}.egmp-page-header h1,.egmp-prose-page h1,.egmp-404 h1{font-size:clamp(3rem,7vw,6.6rem);letter-spacing:-.065em}.egmp-entry-content{font-size:1.1rem}.egmp-entry-content h2{font-size:clamp(2.2rem,5vw,4.5rem);letter-spacing:-.05em}.egmp-card{background:#fff;border-color:#D9E7DD}.egmp-card h2 a{color:#003F28}
@media(max-width:620px){.egmp-brand-logo-image img{height:54px}.egmp-logo-wrap .custom-logo{max-height:54px}}

/* EGMP v2.2 — approved May & Baker-inspired dark navigation */
.egmp-site-header{
  background:#003F28!important;
  border-bottom-color:rgba(255,255,255,.10)!important;
  box-shadow:0 10px 30px rgba(0,38,24,.12);
}
.egmp-header-inner{min-height:86px}
.egmp-logo-wrap{
  background:#fff;
  border-radius:14px;
  padding:7px 11px;
  box-shadow:0 8px 24px rgba(0,0,0,.08);
}
.egmp-brand-logo-image img,.egmp-logo-wrap .custom-logo{height:58px!important;max-height:58px!important}
.egmp-menu a{color:#f2f7f4!important}
.egmp-menu a:hover,.egmp-menu .current-menu-item>a,.egmp-menu .current-menu-ancestor>a{color:#A9DB68!important}
.egmp-menu .sub-menu{background:#fff;border-color:#d7e5dc}
.egmp-menu .sub-menu a{color:#234338!important}
.egmp-menu .sub-menu a:hover{color:#006B3E!important;background:#EEF6F0}
.egmp-header-cta{background:#8FC74A!important;border-color:#8FC74A!important;color:#17390e!important}
.egmp-header-cta:hover{background:#fff!important;border-color:#fff!important;color:#003F28!important}
.egmp-menu-toggle{background:transparent;border-color:rgba(255,255,255,.25)}
.egmp-menu-toggle span:not(.screen-reader-text){background:#fff}
@media(max-width:900px){
 .egmp-primary-nav{background:#003F28;border-color:rgba(255,255,255,.12)}
 .egmp-menu .sub-menu{background:rgba(255,255,255,.96)}
}
.egmp-layout-header{position:sticky;top:0;z-index:1000}
.admin-bar .egmp-layout-header{top:32px}
.egmp-v21-header .egmp-elementor-logo{
  background:#fff;padding:7px 11px;border-radius:14px;
  box-shadow:0 8px 24px rgba(0,0,0,.08)
}
.egmp-v21-header .egmp-elementor-logo img{max-height:58px;width:auto}
.egmp-v21-header .egmp-elementor-menu>a,
.egmp-v21-header .egmp-elementor-menu>li>a{color:#fff!important}
.egmp-v21-header .egmp-elementor-menu>li>a:hover{color:#A9DB68!important}
.egmp-v21-header .egmp-elementor-nav-toggle{background:transparent;color:#fff;border-color:rgba(255,255,255,.3)}

/* v2.2 approved design helpers */
.elementor-page .egmp-site-main{overflow:hidden}.egmp-layout-header,.egmp-layout-footer{width:100%}
