/* Extra rows only for customized navigation; the original four tabs keep their geometry. */
#ward-page .ward-content .tabs.ward-tabs-flex { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); height:auto; row-gap:2px; }
#ward-page .ward-content .tabs.ward-tabs-flex li { float:none; width:auto; height:auto; min-height:44px; }
#ward-page .ward-content .tabs.ward-tabs-flex li span { display:flex; align-items:center; justify-content:center; height:100%; min-height:44px; line-height:22px; padding:9px 8px; overflow-wrap:anywhere; }
#ward-page .ward-content .tabs [role=tab]:focus-visible { outline:2px solid #0C9274; outline-offset:2px; }
#ward-page .ward-content .tab-content:focus { outline:none; }
#ward-page .ward-content .tabs.ward-tabs-tall { position:static; }
@media (max-width:768px) {
    #ward-page .ward-content .tabs.ward-tabs-flex { grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); }
    #ward-page .ward-content .tabs.ward-tabs-flex li,
    #ward-page .ward-content .tabs.ward-tabs-flex li span { min-height:36px; }
    #ward-page .ward-content .tabs.ward-tabs-flex li span { line-height:20px; padding:7px 5px; }
}
