/*
 * Onmindang Core frontend bridge.
 * The theme owns the main design; this file only marks server-loaded results.
 */
.onmindang-core-loaded .aggregate-stage-note{
  display:none;
}
.onmindang-core-loaded .onmindang-topic-title small{
  display:block;
}
.onmindang-server-table .onmindang-topic-row{
  animation:onmindang-core-row-in .14s ease-out both;
}
@keyframes onmindang-core-row-in{
  from{opacity:.55;transform:translateY(1px)}
  to{opacity:1;transform:none}
}
@media(prefers-reduced-motion:reduce){
  .onmindang-server-table .onmindang-topic-row{animation:none}
}


.right-sidebar .popular-list li a{
  min-width:0;
}
.right-sidebar .popular-list li span{
  font-variant-numeric:tabular-nums;
}


/* v0.1.2 — member forum favorites */
.board-list li.onmindang-favorite-enabled{
  position:relative;
}
.board-list li.onmindang-favorite-enabled>a{
  padding-right:32px;
}
.onmindang-favorite-toggle{
  position:absolute;
  z-index:2;
  top:50%;
  right:5px;
  width:25px;
  height:25px;
  transform:translateY(-50%);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:50%;
  background:transparent;
  color:#9a9a9a;
  font-size:16px;
  line-height:1;
  cursor:pointer;
}
.onmindang-favorite-toggle:hover,
.onmindang-favorite-toggle:focus-visible{
  background:#f2f5f8;
  color:#1b4d7a;
  outline:none;
}
.onmindang-favorite-toggle.active{
  color:#b07a00;
}
.onmindang-favorite-toggle.pending{
  opacity:.45;
  cursor:wait;
}
.onmindang-status-badge.favorite{
  border-color:#d9bd72!important;
  background:#fffaf0!important;
  color:#9b6900!important;
  font-size:13px!important;
}
.onmindang-favorite-state{
  min-height:320px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:28px;
  border-bottom:1px solid #ddd;
  background:#fff;
  color:#777;
  text-align:center;
}
.onmindang-favorite-state-icon{
  width:42px;
  height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-bottom:12px;
  border:1px solid #dbc582;
  border-radius:50%;
  background:#fffaf0;
  color:#a87300;
  font-size:21px;
}
.onmindang-favorite-state strong{
  color:#222;
  font-size:16px;
}
.onmindang-favorite-state p{
  max-width:430px;
  margin:8px 0 0;
  font-size:12px;
  line-height:1.65;
}
.onmindang-favorite-state-button{
  min-height:34px;
  margin-top:15px;
  padding:0 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #111;
  border-radius:2px;
  background:#111;
  color:#fff!important;
  font-size:12px;
  font-weight:850;
}
.onmindang-core-toast{
  position:fixed;
  z-index:99999;
  left:50%;
  bottom:24px;
  transform:translate(-50%,14px);
  max-width:min(420px,calc(100vw - 32px));
  padding:10px 14px;
  border-radius:3px;
  background:#1c2c3b;
  color:#fff;
  font-size:12px;
  box-shadow:0 8px 25px rgba(0,0,0,.18);
  opacity:0;
  pointer-events:none;
  transition:opacity .16s ease,transform .16s ease;
}
.onmindang-core-toast.visible{
  opacity:1;
  transform:translate(-50%,0);
}
.onmindang-core-toast.error{
  background:#8b2f2f;
}
.onmindang-favorite-nav-link:before{
  content:"★";
  margin-right:3px;
  color:#a87300;
  font-size:10px;
}

@media(max-width:760px){
  .onmindang-favorite-toggle{
    right:3px;
    width:28px;
    height:28px;
    font-size:17px;
  }
  .board-list li.onmindang-favorite-enabled>a{
    padding-right:35px;
  }
  .onmindang-favorite-state{
    min-height:245px;
    padding:22px 14px;
  }
  .onmindang-core-toast{
    bottom:16px;
  }
}
@media(prefers-reduced-motion:reduce){
  .onmindang-core-toast{
    transition:none;
  }
}
