/* User/plugin spacing remains authoritative. These rules change layout constraints only. */
body .text-spacing-flexible,
body .hmebannertext.text-spacing-flexible,
body .verncular > a.text-spacing-flexible {
    height: auto !important;
    max-height: none !important;
    min-height: var(--text-spacing-original-height, 0px) !important;
}

/* Reserve the existing logo area and allow the desktop menu to wrap below itself. */
.fullmenubg > ul#mnav {
    display: flex;
    flex-wrap: wrap;
    max-width: calc(100% - 135px);
    margin-bottom: 15px;
}
.fullmenubg > ul#mnav > li { flex: 0 1 auto; min-width: 0; }
.fullmenubg > ul#mnav a { white-space: normal; overflow-wrap: anywhere; }
.slidenav .fullmenubg > ul#mnav { display: block; max-width: none; margin-bottom: 0; }
header { padding-bottom: var(--text-spacing-header-extra, 0px); }
#mainContent { scroll-margin-top: calc(110px + var(--text-spacing-header-extra, 0px)); }

/* Wrapping controls retain their padding and expand instead of clipping their labels. */
button, input[type="submit"], input[type="button"], input[type="reset"],
.cmnGrnBtn, .outlinebtn, .btnsubmit, .btn, .toolssubmitbtn, .toolsresetbtn,
.InnerMarketSelects .gobtn a.Gobtn {
    white-space: normal;
    overflow-wrap: anywhere;
}
.bootstrap-select .dropdown-toggle .filter-option-inner-inner,
.bootstrap-select .dropdown-menu a { white-space: normal; overflow-wrap: anywhere; }
.bootstrap-select .dropdown-toggle .filter-option,
.bootstrap-select .dropdown-toggle .filter-option-inner-inner { overflow: visible; }

.equirytopicwrap > .checkgroups { flex-wrap: wrap; gap: 6px 0; }
.equirytopicwrap > .checkgroups > label { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.financialfrm > span { flex-wrap: wrap; gap: 6px 0; }
.financialfrm > span > input[type="text"] { min-width: 0; max-width: 100%; }
.compbsnscont > div > b, .mktbtmsec > div { white-space: normal; overflow-wrap: anywhere; }
.footable > tfoot .paginationNew > ul > li,
.paginationNews > ul > li { width: auto; min-width: 35px; }
.footable > tfoot .paginationNew a, .paginationNews a { display: block; padding: 3px; }

/* Owl can still clip off-screen slides, but not the vertical text within a slide. */
.hmesliderdata .owl-stage-outer { height: auto !important; max-height: none !important; }
.hmNewsSec .hmesliderdata .hmMktBox { overflow: visible; }

/* File guidance follows the upload target rather than overlapping it. */
.careerform > .careertxtbox > .uploadfile { padding-bottom: 0; }
.careerform > .careertxtbox > .uploadfile > span { display: block; min-height: 1.5em; }
.careerform > .careertxtbox > .uploadfile > input { height: 1.5em; }
.careerform .file-upload-label { position: static; display: block; margin-top: 0; }

/* Keep dense text readable; existing scrollable table wrappers retain table navigation. */
.supportwrapper td, .supportwrapper th, .footercontact > a,
.footeraddress li, .footlinksec a { overflow-wrap: anywhere; }

@media only screen and (max-width: 992px) {
    .fullmenubg > ul#mnav { max-width: none; }
}
