/* Study Quest — trade.css (V7.4 "Towns and home", lane T, builder T2 v74-trade): THE POPIS (the V window), the Vodich's draft
 * and the Savet in the Talents window, the fresh and sleeping marks on a talent. Ember & Iron (docs/DESIGN.md): the window
 * frame and .vd-* rows are panels.css's; this file adds the tabs, the sellers' sections and the draft. The purse and a price
 * you cannot pay yet are NEVER red (vendors note E3/E4): plain grey with how much study away it is. */
.tr-popis .tr-head { margin-bottom: 6px; }
.tr-tabs { display: flex; gap: 4px; margin: 4px 0 8px; border-bottom: 1px solid rgba(201, 162, 39, 0.28); }
.tr-tab { appearance: none; border: 1px solid rgba(201, 162, 39, 0.3); border-bottom: none; background: rgba(20, 16, 10, 0.55); color: #c9b98f;
  font: inherit; font-size: 12.5px; padding: 4px 12px; border-radius: 5px 5px 0 0; cursor: pointer; }
.tr-tab:hover { color: #f0dfae; }
.tr-tab.is-on { background: rgba(60, 44, 18, 0.85); color: #ffd877; border-color: rgba(201, 162, 39, 0.6); }
.tr-list { display: flex; flex-direction: column; gap: 10px; max-height: min(62vh, 560px); overflow-y: auto; padding-right: 4px; }
.tr-vendor { border: 1px solid rgba(201, 162, 39, 0.18); border-radius: 6px; padding: 6px 8px 8px; background: rgba(12, 10, 6, 0.35); }
.tr-vhead { display: flex; align-items: baseline; gap: 4px; margin-bottom: 5px; flex-wrap: wrap; }
.tr-vname { color: #ffd877; font-weight: 600; font-size: 13.5px; }
.tr-vhead small { font-size: 11.5px; }
.tr-where { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #c9b98f; margin: 2px 0 6px; }
.tr-none { font-size: 13px; color: #e8dcb8; padding: 4px 2px 2px; }
.tr-away .tr-where { margin-bottom: 0; }
.tr-item .vd-cost { white-space: nowrap; }
.tr-item .vd-study { color: #a99c78; font-size: 11px; display: block; white-space: normal; line-height: 1.25; }   /* the study time on its own line: never under the Buy button */
.tr-item .vd-later, .tr-item.poor .vd-cost { color: #9d9482; }   /* not yet affordable: grey, never red */
.tr-item.poor .vd-study { color: #8f8775; }
.tr-item .vd-lock { color: #8f8775; }
.tr-item.vd-all { opacity: 0.94; }
.tr-foot { font-size: 11.5px; margin-top: 8px; line-height: 1.4; }
/* the Talents window: the draft (R5) and the Savet */
.tr-banner { border: 1px solid rgba(201, 162, 39, 0.55); border-radius: 6px; background: linear-gradient(180deg, rgba(70, 52, 18, 0.65), rgba(30, 22, 10, 0.65));
  padding: 6px 10px; margin: 6px 0; }
.tr-btitle { color: #ffe3a0; font-size: 13.5px; }
.tr-btitle .tr-fee { color: #f5d27a; }
.tr-bline { font-size: 11.5px; margin-top: 2px; }
.tr-tools { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; align-items: center; }
.tr-acts { margin-left: auto; display: inline-flex; gap: 6px; }
.tr-banner .tr-why { font-size: 11.5px; color: #d8c79a; margin-top: 4px; }
.tr-savet { border: 1px dashed rgba(201, 162, 39, 0.35); border-radius: 6px; padding: 5px 10px; margin: 0 0 6px; font-size: 12px; color: #d8cba4; background: rgba(12, 10, 6, 0.35); }
.tr-stitle { color: #ffd877; font-weight: 600; margin-bottom: 2px; }
.tr-stitle small { font-weight: 400; margin-left: 4px; }
.tr-mix { color: #e8dcb8; }
.tr-suses { list-style: none; margin: 3px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.tr-use small { color: #9fcf8a; }
.tr-use.tr-idle small { color: #b8ad8a; }
.tr-use.tr-sleeps small { color: #9fb6d8; }
.tr-sline { font-style: italic; color: #e6d7a8; margin-top: 2px; }
.tal-btn { position: relative; }
.tal-btn.tr-changed { box-shadow: 0 0 0 2px rgba(255, 216, 119, 0.75) inset; }
.tr-minus { position: absolute; left: -5px; top: -5px; width: 16px; height: 16px; line-height: 14px; text-align: center; border-radius: 50%;
  background: #3a1c12; color: #ffd0b0; border: 1px solid #c97a4a; font-size: 13px; font-weight: 700; cursor: pointer; z-index: 2; }
.tr-minus:hover { background: #5a2a18; }
.tr-fresh, .tr-moon { position: absolute; top: -4px; width: 14px; height: 14px; border-radius: 50%; display: grid; place-items: center; z-index: 2; }
.tr-fresh { right: -4px; background: #1e3a24; color: #b8f0a0; border: 1px solid #6fbf6a; }
.tr-moon { left: -4px; top: auto; bottom: -4px; background: #1c2438; color: #b8c8f0; border: 1px solid #6f86bf; }   /* bottom-left: the draft's minus keeps the top-left */
.tr-fresh svg, .tr-moon svg { width: 10px; height: 10px; }
.tal-foot .tr-confirm, .tal-foot .tr-cancel, .tal-foot .tr-replan, .tal-foot .tr-back { margin-left: 6px; }
.tal-foot .tr-why { font-size: 11.5px; color: #c9b98f; margin-left: 8px; }
.tal-foot .tr-near { font-size: 12px; color: #c9b98f; display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; flex-wrap: wrap; }
