/* ==========================================================================
   RC4.8.3 Build 6.2.8.16.9.4.11 – Semantic Header Scale Lock
   Baseline: 6.2.8.16.9.4.10
   BTC Frontend Presentation Contract V1.0
   Presentation-only: no grid, DOM, data, provider, navigation or business mutation.
   ========================================================================== */

/* A) Property cards – reduce title scale and reserve a deterministic icon lane. */
html body.btc-rc4836 .btc62816935-boundary-authority
.btc628169-property-grid > .btc628169-master-panel.btc62816942-semantic-card
.btc62816942-card-header{
  grid-template-columns:minmax(0,1fr) 34px!important;
  column-gap:8px!important;
  align-items:center!important;
  margin:0 0 10px!important;
  min-width:0!important;
}

html body.btc-rc4836 .btc62816935-boundary-authority
.btc628169-property-grid > .btc628169-master-panel.btc62816942-semantic-card
.btc62816942-card-title-slot{
  min-width:0!important;
  overflow:hidden!important;
}

html body.btc-rc4836 .btc62816935-boundary-authority
.btc628169-property-grid > .btc628169-master-panel.btc62816942-semantic-card
.btc62816942-card-title-slot :is(h2,h3,h4){
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  font-size:13px!important;
  line-height:1.08!important;
  letter-spacing:-.012em!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:clip!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  hyphens:none!important;
}

/* Explicit semantic cards: these three must never wrap or collide with their icons. */
html body.btc-rc4836 .btc62816935-boundary-authority
:is(.btc628169-slot-status,[data-btc6281693-slot='status'],
    .btc628169-slot-strength,[data-btc6281693-slot='strength'],
    .btc628169-slot-focus,[data-btc6281693-slot='focus'])
.btc62816942-card-title-slot :is(h2,h3,h4){
  font-size:12.5px!important;
  line-height:1.05!important;
}

html body.btc-rc4836 .btc62816935-boundary-authority
.btc628169-property-grid > .btc628169-master-panel.btc62816942-semantic-card
.btc62816942-card-icon-slot{
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  min-height:34px!important;
  font-size:18px!important;
  align-self:center!important;
}

/* B) Performance Axes – compact header, single-line title, subtitle stays readable. */
html body.btc-rc4836 .btc62816935-boundary-authority
.btc628169-slot-axes > :is(h2,h3,h4):first-child{
  grid-column:1 / -1!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0 0 4px!important;
  padding:0!important;
  font-size:15px!important;
  line-height:1.08!important;
  letter-spacing:-.018em!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:clip!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  hyphens:none!important;
}

html body.btc-rc4836 .btc62816935-boundary-authority
.btc628169-slot-axes > :is(h2,h3,h4):first-child::before{
  width:26px!important;
  height:26px!important;
  min-width:26px!important;
  min-height:26px!important;
  font-size:14px!important;
}

/* Existing native subtitle/copy adjacent to the axes heading is reduced just enough to stay in bounds. */
html body.btc-rc4836 .btc62816935-boundary-authority
.btc628169-slot-axes > :is(p,.btc628169-axes-subtitle,[class*='subtitle']):not(.btc628169-axes-native-bars){
  font-size:11.5px!important;
  line-height:1.25!important;
  max-width:100%!important;
  min-width:0!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  hyphens:none!important;
}

/* C) Compact desktop – make title scale fluid before any layout change is considered. */
@media (max-width:1180px) and (min-width:861px){
  html body.btc-rc4836 .btc62816935-boundary-authority
  .btc628169-property-grid > .btc628169-master-panel.btc62816942-semantic-card
  .btc62816942-card-title-slot :is(h2,h3,h4){
    font-size:12px!important;
  }
  html body.btc-rc4836 .btc62816935-boundary-authority
  .btc628169-slot-axes > :is(h2,h3,h4):first-child{
    font-size:14px!important;
  }
}

/* D) Mobile may wrap naturally; desktop geometry remains untouched. */
@media (max-width:860px){
  html body.btc-rc4836 .btc62816935-boundary-authority
  .btc628169-property-grid > .btc628169-master-panel.btc62816942-semantic-card
  .btc62816942-card-title-slot :is(h2,h3,h4),
  html body.btc-rc4836 .btc62816935-boundary-authority
  .btc628169-slot-axes > :is(h2,h3,h4):first-child{
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }
}
