/* Theologians Bible — resource tool tabs (Saint Commentaries, Encyclopedias,
 * Maps, Animations, Overview) in the sidebar, styled to match the existing
 * commentary panel tokens (--gold, --gold-dim, --border-gold, --bg-3, --cinzel). */

.tb-tool-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0 0 1.35rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border-gold, rgba(201, 162, 77, .14));
}
.tb-tool-tab {
  appearance: none;
  background: var(--bg-3, #111);
  border: 1px solid var(--border-gold, rgba(201, 162, 77, .14));
  color: var(--text-dim, #a09880);
  font-family: var(--cinzel, serif);
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .48rem .72rem;
  cursor: pointer;
  border-radius: 3px;
  transition: var(--trans, all .2s ease);
  white-space: nowrap;
}
.tb-tool-tab:hover {
  color: var(--gold, #C9A24D);
  border-color: rgba(201, 162, 77, .4);
}
.tb-tool-tab[aria-selected="true"] {
  color: #0a0a0a;
  background: var(--gold, #C9A24D);
  border-color: var(--gold, #C9A24D);
}

.tb-tool-panel-heading {
  font-family: var(--cinzel, serif);
  font-size: .62rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold-dim, #a07d35);
  margin-bottom: 1rem;
}
/* the Saint Commentaries panel already renders its own "Holy Father
   Commentary" section title, so skip the duplicate heading there */
.tb-tool-panel[data-tool="saints"] > .tb-tool-panel-heading { display: none; }

.tb-tool-panel + .tb-tool-panel { margin-top: 1.8rem; padding-top: 1.6rem; border-top: 1px solid var(--border, rgba(255, 255, 255, .055)); }

.tb-tool-empty {
  color: var(--text-faint, #5a5040);
  font-style: italic;
  font-size: .9rem;
  line-height: 1.7;
}

/* animation cards */
.tb-anim-card {
  margin-bottom: 1.6rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, .055));
}
.tb-anim-card:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.tb-anim-head {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  margin-bottom: .7rem;
}
.tb-anim-ref {
  font-family: var(--cinzel, serif);
  font-size: .58rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-dim, #a07d35);
}
.tb-anim-title {
  font-family: var(--cinzel, serif);
  font-size: .8rem;
  letter-spacing: .04em;
  color: var(--gold, #C9A24D);
}
.tb-anim-card blockquote.instagram-media {
  margin: 0 0 .6rem !important;
  max-width: 100% !important;
  min-width: 0 !important;
  background: var(--bg-3, #111) !important;
  border: 1px solid var(--border-gold, rgba(201, 162, 77, .14)) !important;
  border-radius: 4px !important;
}
.tb-anim-card blockquote.instagram-media a {
  color: var(--gold-dim, #a07d35);
  font-family: var(--crimson, serif);
  font-size: .85rem;
  text-decoration: none;
}
.tb-anim-link {
  display: inline-block;
  font-family: var(--cinzel, serif);
  font-size: .57rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-dim, #a07d35);
  text-decoration: none;
}
.tb-anim-link:hover { color: var(--gold, #C9A24D); }

/* Bible Atlas event cards in the Maps tab */
.tb-atlas-card {
  margin-bottom: 1.4rem;
  padding: 1rem 1.05rem;
  background: var(--bg-3, #111);
  border: 1px solid var(--border-gold, rgba(201, 162, 77, .14));
  border-radius: 4px;
}
.tb-atlas-open {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: .55rem;
  font-family: var(--cinzel, serif);
  font-size: .58rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold, #C9A24D);
  text-decoration: none;
  border: 1px solid rgba(201, 162, 77, .32);
  border-radius: 3px;
  padding: .5rem .75rem;
  transition: var(--trans, all .2s ease);
}
.tb-atlas-open:hover { background: rgba(201, 162, 77, .12); border-color: var(--gold, #C9A24D); }
.tb-atlas-footer { display: inline-block; margin-top: .3rem; }

/* Cross References tab */
.tb-xref-count {
  font-family: var(--crimson, serif);
  font-size: .78rem;
  color: var(--text-faint, #6f6758);
  margin-bottom: .8rem;
}
.tb-xref-list { display: flex; flex-direction: column; gap: .5rem; }
.tb-xref-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .75rem;
  background: var(--bg-3, #111);
  border: 1px solid var(--border-gold, rgba(201, 162, 77, .14));
  border-radius: 4px;
}
.tb-xref-row a, .tb-xref-row span:first-child {
  font-family: var(--crimson, serif);
  font-size: .88rem;
  color: var(--gold, #C9A24D);
  text-decoration: none;
}
.tb-xref-row a:hover { text-decoration: underline; }
.tb-xref-votes {
  margin-left: auto;
  font-family: var(--cinzel, serif);
  font-size: .58rem;
  letter-spacing: .08em;
  color: var(--text-faint, #6f6758);
  white-space: nowrap;
}
.tb-xref-votes.tb-xref-neg { color: #c96060; }

@media (max-width: 960px) {
  .tb-tool-tabs {
    position: sticky;
    top: 0;
    background: rgba(10, 10, 9, .98);
    z-index: 2;
    padding-top: .2rem;
    margin-left: -1.1rem;
    margin-right: -1.1rem;
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
  .tb-tool-tab { font-size: .6rem; padding: .55rem .7rem; }
}

/* ------------------------------------------------ study links strip */
.tb-study-links {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: .65rem 0 1.1rem;
}
.tb-study-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--cinzel, serif);
  font-size: .56rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim, #a09880);
  text-decoration: none;
  border: 1px solid var(--border-gold, rgba(201, 162, 77, .18));
  border-radius: 999px;
  padding: .4rem .7rem;
  transition: var(--trans, all .2s ease);
}
.tb-study-link span { color: var(--gold, #C9A24D); font-size: .68rem; }
.tb-study-link:hover {
  color: var(--gold, #C9A24D);
  border-color: var(--gold-dim, #a07d35);
  background: rgba(201, 162, 77, .07);
}
.tb-study-link.tb-study-premium {
  border-color: var(--gold-dim, #a07d35);
  background: rgba(201, 162, 77, .05);
}
.tb-study-link .tb-premium-star {
  color: var(--gold, #C9A24D);
  font-size: .5rem;
  margin-left: .1rem;
}
