/* rateodds-fold-1127: G7 Rate Odds as a full-width closed fold on bonds.
   navy/gold only. bento-declutter.css supplies details.bn chrome. */

.hgrid > #g7-rate-odds{
  grid-column:1/-1;
  min-width:0;
  margin:0;
}

/* leftover gauge-hub span-3: g7ob is no longer a grid child */
@media(min-width:1000px){
  .hgrid > section.g7ob{grid-column:unset !important}
  .hgrid > section.fod-card{grid-column:span 2;min-width:0}
}
@media(max-width:700px){
  .hgrid > section.fod-card{grid-column:1/-1}
}

/* fill the row before the full-width #t-hy-tips pair (HY OAS + 10y real) */
@media(min-width:1000px){
  .hgrid > section:has(> a.bhd[href='bonds-us-2s10s.html']),
  .hgrid > section:has(> a.bhd[href='bonds-us-vs-de-2s10s.html']){
    grid-column:span 2;
    min-width:0;
  }
}

/* header: title + jobs tag + pills + open/close on one row; teaser uses the full width */
#g7-rate-odds > summary.bn-hd{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;
  column-gap:8px;
  row-gap:4px;
}
#g7-rate-odds .bn-hd-text{display:contents}
#g7-rate-odds .bn-k{grid-column:1;grid-row:1;min-width:0}
#g7-rate-odds .g7-bar-xp{grid-column:2;grid-row:1;margin:0}
#g7-rate-odds .bn-tog{grid-column:3;grid-row:1;margin:0}
#g7-rate-odds .bn-sub{grid-column:1/-1;grid-row:2;margin:2px 0 0}

#g7-rate-odds .bn-k{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}
#g7-rate-odds .g7-bar-tag{
  display:inline-flex;
  align-items:center;
}
/* econ-calendar badge: sit in the header, not as a block above the summary */
#g7-rate-odds .g7-bar-tag > .econ-cal-ab,
#g7-rate-odds > summary .econ-cal-ab{
  position:static;
  display:inline-block;
  margin:0;
  vertical-align:middle;
}
#g7-rate-odds.econ-cal-week,
#g7-rate-odds.econ-cal-today,
#g7-rate-odds.econ-cal-soon{
  outline:none;
}

#g7-rate-odds .g7-bar-xp{
  flex:none;
  display:inline-flex;
  align-items:center;
  gap:4px;
  margin:1px 4px 0 0;
}
#g7-rate-odds .xpb{
  background:#121831;
  color:#f0cd77;
  border:1px solid #8a6424;
  border-radius:7px;
  padding:3px 9px;
  cursor:pointer;
  font:12px Georgia,serif;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
}
#g7-rate-odds .xpb:hover{
  border-color:#f0cd77;
  box-shadow:0 0 8px rgba(240,180,80,.35);
  color:#f0cd77;
}
#g7-rate-odds .xpb.dlb{
  padding:3px 8px;
}

#g7-rate-odds .bn-body{
  padding:8px 12px 14px;
}
#g7-rate-odds section.g7ob{
  margin:0 !important;
  padding:4px 2px 6px;
  background:transparent;
  border:0;
  box-shadow:none;
  overflow:visible;
}
#g7-rate-odds section.g7ob > h2{
  display:none;
}

@media(min-width:1000px){
  #g7-rate-odds .g7-wide{
    display:grid;
    grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);
    gap:16px 28px;
    align-items:start;
  }
}

#g7-rate-odds .g7o table{
  width:100%;
}
#g7-rate-odds .prcx{
  margin-top:0;
  padding-top:0;
  border-top:0;
}
@media(max-width:999px){
  #g7-rate-odds .prcx{
    margin-top:10px;
    padding-top:8px;
    border-top:1px solid #3a4468;
  }
}

/* standalone Fed Odds: the inner .fod no longer sits under Truflation */
.hgrid > section.fod-card{
  padding-top:12px;
  padding-bottom:12px;
}
.hgrid > section.fod-card > .fod{
  margin:0;
  height:100%;
}

#g7-rate-odds .g7-bar-tag > .econ-cal-ab{
  margin:0;
}
@media(max-width:700px){
  #g7-rate-odds .bn-k{
    min-width:0;
  }
  /* title + pills + open/close stay on one row; jobs tag wraps under the title */
  #g7-rate-odds .g7-bar-tag{
    flex-basis:100%;
  }
}

/* keep the fold inside the grid on a 390-wide phone; teaser must wrap */
#g7-rate-odds,
#g7-rate-odds > summary.bn-hd{
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
}
#g7-rate-odds .bn-sub{
  min-width:0;
  max-width:100%;
  white-space:normal;
  overflow-wrap:anywhere;
}

@media(max-width:700px){
  /* 2-col min-content (odds table, fed-odds, sparks) was stretching the grid past the phone */
  .hgrid{min-width:0;max-width:100%}
  .hgrid > *{min-width:0;max-width:100%;box-sizing:border-box}
  .hgrid > #g7-rate-odds{max-width:calc(100vw - 28px)}
}
