.tcab {
  border-top: 1px solid #b8b5a8;
  border-bottom: 1px solid #b8b5a8;
  color: var(--ink);
}
.tcab summary {
  cursor: pointer;
  list-style: none;
}
.tcab summary::-webkit-details-marker { display: none; }
.tcab summary:focus-visible {
  outline: 3px solid #7759a7;
  outline-offset: -2px;
}
.tcab > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 3px;
  font-size: 1.05rem;
  font-weight: 680;
}
.tcab > summary::after {
  content: "+";
  margin-left: auto;
  padding-right: 3px;
  font: 1.2rem var(--mono);
}
.tcab[open] > summary::after { content: "−"; }
.tcab-count {
  font: .76rem var(--mono);
  padding: 3px 7px;
  border: 1px solid #979284;
  border-radius: 3px;
  background: #f6f3dd;
}
.tcab-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  align-items: start;
  gap: 9px;
  padding: 0 2px 14px;
}
.tcab-badge {
  min-width: 0;
  border: 1px solid #aaa796;
  border-radius: 4px;
  background: #f3f1e6;
}
.tcab-badge summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 55px;
  padding: 6px 9px;
}
.tcab-badge summary:hover { background: #e7e4d5; }
.tcab-badge summary img {
  width: 43px;
  height: 34px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: grayscale(1);
  opacity: .65;
}
.tcab-badge summary span { min-width: 0; }
.tcab-badge strong, .tcab-badge small { display: block; }
.tcab-badge strong { font-size: .96rem; line-height: 1.2; }
.tcab-badge small {
  color: #625e67;
  font: .7rem var(--mono);
  margin-top: 3px;
}
.tcab-earned { background: #e7f0d6; border-color: #828f68; }
.tcab-earned summary:hover { background: #dce9c7; }
.tcab-earned summary img { filter: none; opacity: 1; }
.tcab-earned small { color: #426234; }
.tcab-badge p {
  border-top: 1px dashed #b7b29d;
  margin: 0;
  padding: 9px;
  font-size: .92rem;
  line-height: 1.42;
}
.tcab-badge p span { white-space: nowrap; }
@media (max-width: 720px) { .tcab-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 380px) { .tcab-grid { grid-template-columns: 1fr; } }
