/* AGNI v2.2.4 — accessible logo sizing, larger navigation and balanced founder columns */
.agni-ref-header-row{max-width:1340px;width:calc(100% - 48px);height:94px;gap:20px}
.agni-ref-header .agni-ref-brand{flex:0 1 auto;min-width:0;max-width:34%}
.agni-ref-header .agni-ref-brand img.agni-ref-uploaded-logo{
  display:block;width:var(--agni-header-logo-width,240px);max-width:100%;height:auto;max-height:78px;object-fit:contain;
}
.agni-ref-footer .agni-ref-brand img.agni-ref-footer-logo{
  display:block;width:var(--agni-footer-logo-width,280px);max-width:100%;height:auto;max-height:120px;object-fit:contain;
}
.agni-ref-nav,.agni-ref-nav ul{gap:20px}
.agni-ref-nav a{font-size:14px;line-height:1.4;letter-spacing:0;font-weight:700}
.agni-ref-header-cta{font-size:13px;padding:13px 19px}
.agni-ref-founder-main,
.agni-ref-founder-panel.agni-ref-image-right .agni-ref-founder-main{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:34px;align-items:start;
}
.agni-ref-founder-portrait{min-width:0;text-align:center;padding:0 28px 0 0;border-right:1px solid #ffc1ac;border-bottom:0}
.agni-ref-founder-portrait img{margin-top:8px;margin-bottom:19px}
.agni-ref-founder-portrait blockquote{
  display:flex;gap:13px;text-align:left;margin:26px 0 0;padding:20px 18px;
  background:#faf6f2;border:1px solid #f4e5db;border-radius:12px;
}
.agni-ref-founder-portrait blockquote .agni-ref-quote-mark{font-size:52px;line-height:1;flex:none;padding-left:9px}
.agni-ref-founder-portrait blockquote p{font-size:13px;font-style:italic;line-height:1.7}
.agni-ref-founder-portrait blockquote cite{font-size:11px;margin-top:12px}
.agni-ref-founder-copy{min-width:0}
/* Keep Gutenberg's 'image on right' control functional for the founder. */
.agni-ref-founder-panel.agni-ref-image-right .agni-ref-founder-portrait{
  order:2;border-left:1px solid #ffc1ac;border-right:0;padding:0 0 0 28px;
}
.agni-ref-founder-panel.agni-ref-image-right .agni-ref-founder-copy{order:1}
@media(max-width:1250px) and (min-width:1101px){
  .agni-ref-header-row{gap:14px}
  .agni-ref-nav,.agni-ref-nav ul{gap:13px}
  .agni-ref-nav a{font-size:13px}
  .agni-ref-header-cta{font-size:12px;padding:12px 15px}
}
/* Switch to the existing WordPress mobile menu before navigation starts colliding with the enlarged logo. */
@media(max-width:1100px){
  .agni-ref-header-row{height:84px;gap:14px}
  .agni-ref-nav{display:none}
  .agni-ref-header-cta{margin-left:auto}
  .agni-ref-mobile-toggle{display:block;margin-left:auto}
  .agni-ref-header .agni-ref-brand{max-width:60%}
  .agni-ref-header .agni-ref-brand img.agni-ref-uploaded-logo{max-height:64px}
  .agni-ref-mobile-menu.is-open{display:block;position:absolute;left:14px;right:14px;top:calc(100% + 8px);z-index:200;padding:18px;background:rgba(255,255,255,.97);border-radius:14px;box-shadow:0 16px 34px #0003;backdrop-filter:blur(14px)}
  .agni-ref-mobile-menu a{display:block;padding:11px;font-size:15px;font-weight:700;color:#303030;text-decoration:none}
  .agni-ref-mobile-menu ul{list-style:none;margin:0;padding:0}
  .agni-ref-mobile-menu .sub-menu{padding-left:17px}
  .agni-ref-founder-main,.agni-ref-founder-panel.agni-ref-image-right .agni-ref-founder-main{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;
  }
}
@media(max-width:800px){
  .agni-ref-founder-main,.agni-ref-founder-panel.agni-ref-image-right .agni-ref-founder-main{
    grid-template-columns:1fr;gap:26px;
  }
  .agni-ref-founder-portrait,
  .agni-ref-founder-panel.agni-ref-image-right .agni-ref-founder-portrait{
    order:0;border:0;border-bottom:1px solid #ffd5c4;padding:0 0 28px;
  }
  .agni-ref-founder-copy,.agni-ref-founder-panel.agni-ref-image-right .agni-ref-founder-copy{order:1}
  .agni-ref-founder-portrait blockquote{max-width:520px;margin:24px auto 0}
}
@media(max-width:500px){
  .agni-ref-header-row{height:76px;width:calc(100% - 26px)}
  .agni-ref-header .agni-ref-brand{max-width:75%}
  .agni-ref-header .agni-ref-brand img.agni-ref-uploaded-logo{max-height:56px}
  .agni-ref-footer .agni-ref-brand img.agni-ref-footer-logo{max-height:100px}
  .agni-ref-founder-portrait blockquote{padding:16px 12px;gap:9px}
}
