/* ==========================================================
   NEXACORE V6.5.1.3 · TRUE READABILITY FLOOR
   Applied to actual visible leaf UI text, not to audit rules.
   ========================================================== */

.nexa-v6513-readable{
  font-size:10.5px!important;
  line-height:1.35!important;
}

a.nexa-v6513-readable,
button.nexa-v6513-readable{
  font-size:11px!important;
}

/* Keep boosted text from generating a new geometry problem. */
.nexa-v6513-readable{
  max-width:100%;
  overflow-wrap:anywhere;
}

/* Auxiliary pages */
html[data-nexa-page="qa"] :where(
  .qa-item,.qa-question,.qa-answer,.side-card,.nexa-crossnav
),
html[data-nexa-page="terms"] :where(
  .term,.company,.company-grid,.company-grid .data,.nexa-crossnav
){
  min-width:0!important;
  max-width:100%;
}

html[data-nexa-page="qa"] .qa-question{
  font-size:max(14px,.875rem)!important;
  line-height:1.4!important;
}

html[data-nexa-page="qa"] .qa-answer,
html[data-nexa-page="terms"] .term :where(p,li){
  font-size:max(13.5px,.84375rem)!important;
  line-height:1.62!important;
}

html[data-nexa-page="qa"] :where(.qa-item,.side-card,.nexa-crossnav) small,
html[data-nexa-page="terms"] :where(.term,.company,.company-grid,.nexa-crossnav) small{
  font-size:11px!important;
  line-height:1.45!important;
}

/* Terms grid remains flexible at all widths. */
html[data-nexa-page="terms"] .company-grid{
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr))!important;
}

/* Long strings never force the viewport. */
html[data-nexa-page="qa"] :where(a,button,.qa-answer,.qa-question),
html[data-nexa-page="terms"] :where(a,button,.term,.company-grid .data){
  overflow-wrap:anywhere;
}

/* Keep existing footer/TikTok policy untouched. */

@media(max-width:768px){
  html[data-nexa-page="qa"] .wrap,
  html[data-nexa-page="terms"] .wrap{
    width:min(100% - 24px,1100px)!important;
  }
}

@media(max-width:430px){
  html[data-nexa-page="qa"] .wrap,
  html[data-nexa-page="terms"] .wrap{
    width:min(100% - 18px,1100px)!important;
  }
}

/* ==========================================================
   END V6.5.1.3
   ========================================================== */
