/* Equal-sized tool cards, scoped to the public home page. */
.ofx-home-copy #funcionalidades .ofx-tools{align-items:stretch;gap:18px}
.ofx-home-copy #funcionalidades .ofx-tool{min-width:0;overflow:hidden}
.ofx-home-copy #funcionalidades .ofx-tool>summary{box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:76px minmax(52px,auto) minmax(48px,1fr) 22px;gap:12px;padding:20px;min-height:300px;list-style:none}
.ofx-home-copy #funcionalidades .ofx-tool>summary>.flex-identidade{width:100%!important;max-width:100%!important;height:76px!important;margin:0!important;align-items:center!important;justify-content:center!important}
.ofx-home-copy #funcionalidades .ofx-tool>summary>.flex-identidade img{width:100%!important;height:76px!important;max-height:76px!important;object-fit:contain!important;object-position:center!important}
.ofx-home-copy #funcionalidades .ofx-tool>summary>.ofx-tool-icon{width:100%;height:76px;margin:0;background:transparent;font-size:38px}
.ofx-home-copy #funcionalidades .ofx-tool>summary>h3{font-size:17px;line-height:1.4;margin:0;align-self:start;overflow-wrap:normal}
.ofx-home-copy #funcionalidades .ofx-tool>summary>p{font-size:14px;line-height:1.6;margin:0;align-self:start}
.ofx-home-copy #funcionalidades .ofx-tool>summary>.ofx-tool-hint{align-self:end;margin:0;line-height:22px;width:100%}
.ofx-home-copy #funcionalidades .ofx-tool[open] .ofx-tool-detail{border-top:1px solid #ffffff30;padding-top:18px}
@media(max-width:520px){.ofx-home-copy #funcionalidades .ofx-tool>summary{min-height:285px;grid-template-rows:76px minmax(48px,auto) minmax(44px,1fr) 22px;padding:20px;gap:10px}}

/* Center incomplete rows while preserving the four-card desktop size. */
.ofx-home-copy #funcionalidades .ofx-tools{display:flex;flex-wrap:wrap;justify-content:center;align-items:stretch}
.ofx-home-copy #funcionalidades .ofx-tools>.ofx-tool{box-sizing:border-box;flex:0 0 calc((100% - 54px)/4)}
@media(max-width:1050px){.ofx-home-copy #funcionalidades .ofx-tools>.ofx-tool{flex-basis:calc((100% - 18px)/2)}}
@media(max-width:520px){.ofx-home-copy #funcionalidades .ofx-tools>.ofx-tool{flex-basis:100%}}

/* Balanced headings and card copy, restricted to the tools section. */
.ofx-home-copy #funcionalidades h2{text-align:center;line-height:1.3;margin:32px auto 22px;max-width:900px;text-wrap:balance}
.ofx-home-copy #funcionalidades .ofx-tool>summary>h3{text-align:center;width:100%;text-wrap:balance;align-self:center}
.ofx-home-copy #funcionalidades .ofx-tool>summary>p{text-align:center;text-wrap:pretty}
.ofx-home-copy #funcionalidades .ofx-tools{margin-bottom:32px}
