/* Theme gallery — supplements site.css. Values are static, generated from
   config/themes/<name>.json; no runtime JSON reads. */

.tfig { margin: 8px 0 22px; }
.tfig img { width: 100%; }

.tjump {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 8px;
  margin: 0 0 30px;
  font-family: var(--mono);
  font-size: 11.5px;
}
.tjump a {
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text2);
  text-decoration: none;
}
.tjump a:hover { color: var(--accent2); border-color: rgba(232,145,90,.35); text-decoration: none; }

.tgrid { display: grid; gap: 20px; margin: 22px 0 30px; }

.tcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.tcard.paid { border-color: rgba(232,145,90,.28); }

.tcard-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 18px 13px;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}
.tcard-id { min-width: 0; }
.tno {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--text3);
  margin-bottom: 4px;
}
.tcard.paid .tno { color: var(--accent2); }
.tcard h3 {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.35;
  margin: 0 0 4px;
}
.tslug code { font-size: 12px; background: transparent; border: 0; padding: 0; color: var(--text3); }
.ttags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; flex: none; }
.tag-mode { background: rgba(15,20,30,.05); color: var(--text2); border: 1px solid var(--border2); }

.tchips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px 4px;
}
.tchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
}
.tchip b { font-size: 9.5px; letter-spacing: .08em; color: var(--text2); font-weight: 700; }
.tchip i {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(15,20,30,.16);
  display: inline-block;
}
.tchip code { background: transparent; border: 0; padding: 0; font-size: 11px; color: var(--text2); }

.swatches {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 7px;
  padding: 12px 18px 15px;
}
.sw { min-width: 0; }
.sw i {
  display: block;
  height: 46px;
  border-radius: 7px;
  border: 1px solid rgba(15,20,30,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}
.sw-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--text3);
}
.sw-meta code { background: transparent; border: 0; padding: 0; font-size: 9.5px; color: var(--text2); }

.tshot {
  margin: 0;
  border-top: 1px solid var(--border);
  background: var(--surface2);
}
.tshot img { width: 100%; display: block; }
.tshot figcaption {
  padding: 9px 18px;
  font-size: 12.5px;
  color: var(--text2);
  border-top: 1px solid var(--border);
}

.tfoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 18px;
  border-top: 1px solid var(--border);
  background: var(--surface2);
}
.tfoot code { font-size: 12px; background: var(--surface); }

@media (max-width: 760px) {
  .swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tcard-hd { flex-direction: column; }
  .ttags { justify-content: flex-start; }
}
@media (max-width: 420px) {
  .swatches { gap: 6px; padding-left: 14px; padding-right: 14px; }
  .sw i { height: 40px; }
}
