/* bento-declutter-1127: group onchain + perps cards into headered bentos. navy/gold. */

details.bn{
  margin:18px 0 22px;
  padding:0;
  border:1px solid var(--gold-d,#6e5a2c);
  border-radius:16px;
  background:linear-gradient(180deg,rgba(17,23,42,.62),rgba(10,14,26,.4));
  overflow:hidden;
}
details.bn>summary.bn-hd{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:12px 16px 11px;
  cursor:pointer;
  list-style:none;
  border-bottom:1px solid rgba(201,162,74,.2);
  background:linear-gradient(180deg,rgba(201,162,74,.08),transparent);
  user-select:none;
}
details.bn>summary.bn-hd::-webkit-details-marker{display:none}
details.bn>summary.bn-hd::marker{content:""}
.bn-hd-text{min-width:0;flex:1}
.bn-k{
  display:block;
  margin:0;
  font:400 13px/1.2 var(--disp,Federo,Georgia,serif);
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--gold2,#e3c278);
}
.bn-sub{
  display:block;
  margin:4px 0 0;
  font:13px/1.4 var(--body,system-ui,sans-serif);
  color:var(--mu,#9d947d);
  letter-spacing:0;
  text-transform:none;
  font-style:normal;
}
.bn-tog{
  flex:none;
  margin-top:2px;
  font:400 11px/1 var(--disp,Federo,Georgia,serif);
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--gold2,#e3c278);
  white-space:nowrap;
}
.bn-tog::before{content:"▾ ";font-size:10px}
details.bn:not([open])>summary.bn-hd{border-bottom:0}
details.bn:not([open]) .bn-tog::before{content:"▸ "}
details.bn:not([open]) .bn-tog::after{content:" open"}
details.bn[open] .bn-tog::after{content:" close"}

.bn-body{padding:10px 12px 14px}
.bn-body>.otg{margin:0}
.bn-body>#who-holds-btc{margin:0!important}
.bn-body>section{margin:10px 0 0!important}
.bn-body>section:first-child,
.bn-body>.otg:first-child,
.bn-body>#who-holds-btc:first-child,
.bn-body>.og2:first-child,
.bn-body>.bn-merged:first-child{margin-top:0!important}
.bn-body>.og2{margin-top:10px}

.pz details.bn section{margin:10px 0 0}
.pz details.bn .og2>section{margin:0}

.bn-merged{margin:0}
.bn-merged>h2{margin:4px 0 2px}
.bn-hint{
  margin:0 0 8px;
  font:12px/1.4 var(--body,system-ui,sans-serif);
  color:var(--mu,#9d947d);
}
.bn-body table{width:100%}
.bn-scroll{overflow-x:auto;max-width:100%}

.bn-orig{
  margin-top:12px;
  border-top:1px dashed rgba(201,162,74,.25);
  padding-top:8px;
}
.bn-orig>summary{
  cursor:pointer;
  list-style:none;
  display:inline-flex;
  align-items:center;
  gap:6px;
  font:400 11.5px var(--disp,Federo,Georgia,serif);
  letter-spacing:.08em;
  text-transform:lowercase;
  color:var(--gold2,#e3c278);
  border:1px solid var(--gold-d,#6e5a2c);
  padding:4px 10px;
  background:linear-gradient(180deg,rgba(201,162,74,.08),transparent);
}
.bn-orig>summary::-webkit-details-marker{display:none}
.bn-orig>summary::before{content:"▸";font-size:10px;color:var(--gold,#c9a24a)}
.bn-orig[open]>summary::before{content:"▾"}
.bn-orig-body{margin-top:10px}

.bn-take{
  margin:0 0 8px;
  padding:8px 10px;
  border-left:2px solid var(--gold,#c9a24a);
  background:rgba(201,162,74,.06);
  font:13px/1.45 var(--body,system-ui,sans-serif);
  color:var(--cream,#f1e4c6);
}
.bn-take b{color:var(--gold2,#e3c278);font-weight:600}

.bn-rails-news{margin-top:12px}
.bn-rails-news>h3{
  margin:0 0 6px;
  font:400 15px/1.2 var(--disp,Federo,Georgia,serif);
  letter-spacing:.08em;
  text-transform:lowercase;
  color:var(--gold2,#e3c278);
}
.bn-rails-news .q{margin-bottom:8px}

@media(max-width:700px){
  details.bn>summary.bn-hd{padding:10px 12px;gap:8px}
  .bn-k{font-size:12px;letter-spacing:.12em}
  .bn-sub{font-size:12px}
  .bn-body{padding:8px 8px 12px}
  .bn-tog{font-size:10px}
}
