/* ═══ binder.css — David's ring binder: the play on the Desk, the state in tabs ═══ */

/* the tab rail: manila folder tabs on a leather strip with binder holes */
.binder-tabs {
  position: sticky; top: 0; z-index: 40;
  display: flex; gap: 6px; align-items: flex-end;
  padding: 10px 10px 0;
  background: linear-gradient(180deg, #171017 0%, #1a1420 78%, rgba(26, 20, 32, 0) 100%);
  box-shadow: 0 14px 18px -14px rgba(0, 0, 0, .85);
}
.binder-tabs::before, .binder-tabs::after {
  content: ""; position: absolute; left: 14px; right: 14px; top: 4px; height: 2px;
  border-radius: 2px; background: rgba(255, 212, 121, .14);
  box-shadow: 0 6px 0 rgba(255, 212, 121, .07);
}
.binder-tabs::after { top: auto; bottom: -2px; box-shadow: none; opacity: .5; }

.btab {
  --tabc: #4a4152;
  position: relative; flex: 1 1 0; min-width: 0; cursor: pointer;
  padding: 9px 4px 8px; border: 1px solid rgba(255, 212, 121, .22); border-bottom: none;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, rgba(74, 65, 82, .55), rgba(40, 33, 48, .9));
  color: #b9ac93; font: 800 8.5px/1.15 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  transition: background .18s, color .18s, transform .18s;
}
.btab:active { transform: translateY(1px); }
.btab.active {
  --tabc: var(--gold);
  color: #f6ecd4;
  background: linear-gradient(180deg, #3a3142 0%, #2c2535 92%);
  border-color: rgba(255, 212, 121, .5);
  box-shadow: 0 -6px 14px -8px rgba(255, 212, 121, .35), inset 0 1px 0 rgba(255, 240, 200, .18);
}
.btab-label { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the ring holes, when there's room for vanity */
@media (min-width: 420px) {
  .binder-tabs::after {
    content: "○  ○  ○  ○  ○  ○  ○  ○  ○  ○  ○  ○"; bottom: -1px; letter-spacing: 34px;
    font-size: 3px; color: rgba(255, 212, 121, .18);
  }
}

/* the tab dot: a gold-gold pushpin when something moved */
.btab-dot {
  position: absolute; top: 5px; right: 6px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 8px rgba(255, 212, 121, .9);
  animation: dot-pulse 1.4s ease-in-out infinite;
}
.btab-dot.hidden { display: none; }
@keyframes dot-pulse { 50% { opacity: .35; } }

/* panes */
.bpane { display: none; padding: 4px 0 26px; }
.bpane.active { display: block; animation: pane-in .3s ease both; }
@keyframes pane-in { from { opacity: 0; transform: translateY(6px); } }

/* the ledger pane footer: cost as small print */
.ledger-cost { margin: 18px 14px 0; text-align: right; font: 600 10px/1 var(--sans); letter-spacing: .18em; color: var(--mute); text-transform: uppercase; }

/* the building pane: give the panel a little air */
#pane-building { padding-top: 10px; }
#pane-building .building { margin-top: 6px; }
#pane-building .bld-strip { cursor: default; }
