/* Shared interactive header for internal pages */
.site-header.ec-shell{height:76px;border-bottom:1px solid #deddd7;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:20px;padding:0 28px;position:sticky;top:0;z-index:20;background:rgba(247,246,242,.97);backdrop-filter:blur(12px)}
.ec-shell .header-start{display:flex;align-items:center;gap:18px}
.ec-shell .brand{display:flex;align-items:baseline;gap:8px;white-space:nowrap;text-decoration:none;color:#171717}
.ec-shell .brand strong{font-family:Manrope,"DM Sans",sans-serif;font-size:28px;line-height:1;font-weight:800;letter-spacing:-1.8px}
.ec-shell .brand span{font-family:Manrope,"DM Sans",sans-serif;font-weight:800;letter-spacing:4px;font-size:15px;color:#6554d8}
.ec-shell .main-nav{display:flex;justify-content:center;gap:24px}
.ec-shell .main-nav a{font-size:14px;font-weight:700;text-decoration:none;color:#171717}
.ec-shell .main-nav a:hover{color:#6554d8}
.ec-shell .header-end{display:flex;align-items:center;gap:12px}
.ec-shell .icon-button,.ec-shell .search-button{background:none;border:0;cursor:pointer;color:#171717}
.ec-shell .menu-toggle{display:none;width:38px;height:38px;padding:7px;flex-direction:column;justify-content:center;gap:5px;position:relative;z-index:21;touch-action:manipulation}
.ec-shell .menu-toggle span{height:2px;width:25px;background:#171717;display:block}
.ec-shell .search-button{width:46px;height:46px;border:1px solid #deddd7;border-radius:50%;display:grid;place-items:center}
.ec-shell .search-button span{font-size:24px}
.ec-shell .cta-button{background:#6554d8;color:#fff;border-radius:999px;padding:12px 19px;font-weight:800;font-size:13px;text-decoration:none}
.mobile-menu{position:fixed;inset:0;background:#f7f6f2;z-index:40;padding:100px 10vw;transform:translateY(-105%);transition:transform .35s ease;overflow-y:auto}
.mobile-menu.open{transform:translateY(0)}
.mobile-menu nav{display:flex;flex-direction:column;gap:28px}
.mobile-menu nav a{font-family:Manrope,"DM Sans",sans-serif;font-size:clamp(30px,7vw,54px);font-weight:700;letter-spacing:-1.5px;text-decoration:none;color:#171717}
.close-menu{position:absolute;right:28px;top:18px;background:none;border:0;font-size:46px;cursor:pointer;color:#171717}
.menu-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.25);z-index:30;opacity:0;pointer-events:none;transition:opacity .25s}
.menu-backdrop.open{opacity:1;pointer-events:auto}
.search-dialog{border:0;border-radius:28px;background:#f7f6f2;width:min(680px,calc(100% - 32px));padding:0;box-shadow:0 30px 100px rgba(0,0,0,.25);color:#171717}
.search-dialog::backdrop{background:rgba(0,0,0,.55);backdrop-filter:blur(4px)}
.search-form{padding:38px;position:relative}
.close-search{position:absolute;right:22px;top:14px;background:none;border:0;font-size:38px;cursor:pointer;color:#171717}
.search-form label{font-family:Manrope,"DM Sans",sans-serif;font-size:30px;font-weight:700;display:block;margin-bottom:20px}
.search-field{display:flex;border-bottom:2px solid #171717}
.search-field input{border:0;background:none;outline:0;flex:1;font-size:20px;padding:13px 0;color:#171717}
.search-field button{border:0;background:none;font-size:28px;cursor:pointer}
.search-form p{color:#777675}
@media(max-width:980px){
  .site-header.ec-shell{height:70px;padding:0 18px;grid-template-columns:44px minmax(0,1fr) 44px;gap:0}
  .ec-shell .header-start{display:contents}
  .ec-shell .main-nav,.ec-shell .cta-button{display:none}
  .ec-shell .menu-toggle{display:flex;grid-column:1;justify-self:start}
  .ec-shell>.header-start>.brand{grid-column:2;justify-self:center}
  .ec-shell .header-end{grid-column:3;justify-self:end}
  .ec-shell .brand strong{font-size:26px}
  .ec-shell .brand span{font-size:14px;letter-spacing:2.5px}
}
@media(max-width:680px){
  .search-form{padding:32px 20px}.search-form label{font-size:24px}
}
@media(max-width:460px){
  .site-header.ec-shell{padding:0 14px;grid-template-columns:42px minmax(0,1fr) 42px}
  .ec-shell .brand{gap:5px}
  .ec-shell .brand strong{font-size:21px}
  .ec-shell .brand span{font-size:11px;letter-spacing:1.7px}
  .ec-shell .search-button{width:40px;height:40px}
}
/* Editorial cover framing in category cards
   Local Evolua cover artworks must be fully visible inside the 16:9 card frame.
   This prevents text/faces/key visual elements from being cropped when an asset is not exactly 16:9. */
.grid .card img{
  width:100%;
  aspect-ratio:16/9;
  display:block;
  object-position:center;
}
.grid .card img[src^="/images/"],
.grid .card img[src^="https://evolua-capital.com/images/"]{
  object-fit:contain !important;
  object-position:center center !important;
  background:#171717;
}


/* Category cards: lock the media box itself to 16:9.
   Important: aspect-ratio on an image with intrinsic dimensions can still grow
   when height remains auto. The fixed media box below restores the compact cards. */
.grid .card > a > img{
  width:100% !important;
  height:auto !important;
  aspect-ratio:16 / 9 !important;
  max-height:none !important;
  display:block !important;
}
.grid .card > a > img[src^="/images/"],
.grid .card > a > img[src^="https://evolua-capital.com/images/"]{
  height:auto !important;
  aspect-ratio:16 / 9 !important;
  object-fit:contain !important;
  object-position:center !important;
}
@supports (aspect-ratio: 16 / 9){
  .grid .card > a > img{
    height:auto !important;
  }
}


/* Post hero covers: responsive 16:9 on every viewport.
   Kept separate from category-card rules so cards remain unchanged. */
body .cover{
  width:min(1080px,calc(100% - 40px)) !important;
  height:auto !important;
  aspect-ratio:16 / 9 !important;
  overflow:hidden !important;
  margin-left:auto !important;
  margin-right:auto !important;
  background:#171717;
}
body .cover > img{
  width:100% !important;
  height:100% !important;
  min-width:0 !important;
  min-height:0 !important;
  max-width:100% !important;
  max-height:100% !important;
  aspect-ratio:16 / 9 !important;
  object-fit:contain !important;
  object-position:center center !important;
  display:block !important;
}
@media(max-width:680px){
  body .cover{
    width:calc(100% - 24px) !important;
    aspect-ratio:16 / 9 !important;
  }
  body .cover > img{
    width:100% !important;
    height:100% !important;
    max-height:100% !important;
    object-fit:contain !important;
    object-position:center center !important;
  }
}

/* Busca inteligente global */
.search-dialog{max-height:min(82vh,760px);overflow:hidden}.search-form{position:relative;max-height:min(82vh,760px);overflow-y:auto}.search-results{margin-top:20px;border-top:1px solid var(--line,#deddd7);max-height:390px;overflow-y:auto}.search-results-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 0 8px;font-size:12px}.search-results-head strong{font-family:Manrope,"DM Sans",sans-serif;font-size:13px}.search-results-head span{color:var(--muted,#777675)}.search-result{display:block;padding:13px 0;border-top:1px solid var(--line,#deddd7);text-decoration:none!important;color:var(--ink,#171717)!important}.search-result:hover strong{color:var(--purple,#6554d8)}.search-result-meta{display:block;color:var(--purple,#6554d8);font-size:10px;font-weight:800;letter-spacing:1.3px;text-transform:uppercase;margin-bottom:5px}.search-result strong{display:block;font-family:Manrope,"DM Sans",sans-serif;font-size:17px;line-height:1.25;transition:color .15s}.search-result small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--muted,#777675);font-size:12.5px;line-height:1.45;margin-top:5px}.search-empty,.search-loading{padding:20px 0;color:var(--muted,#777675);display:grid;gap:5px}.search-empty strong{color:var(--ink,#171717);font-family:Manrope,"DM Sans",sans-serif}.search-field button{cursor:pointer}.search-field input{min-width:0}@media(max-width:680px){.search-dialog{width:calc(100% - 20px);border-radius:20px}.search-results{max-height:46vh}.search-result strong{font-size:16px}.search-result small{font-size:12px}}
