/* PC 3-column screen, B under the input row: stock information from the Korea Investment & Securities API
   (owner 2026-11-29, logs/shots/ref/client-pc-info-kis.md): 기본 정보 · 호가 · 시세 시간별 · 투자자별 매매.
   Built by static/js/pc3info.js only while the 3-column screen is on (html.pc3) - the phone and the narrower page have none of it.
   The boxes and tables use the look of the daily table (css/pc3.css .pc3-info / .pc3-tbl). */
@media (min-width: 1280px) {
  html.pc3 .pc3i { display: block; }
  html.pc3 .pc3i[hidden], html.pc3 .pc3i [hidden] { display: none; }
  .pc3i .pc3-info-h small { margin-left: auto; font-size: 14px; font-weight: 500; color: var(--sub); font-variant-numeric: tabular-nums; }
  .pc3i .pc3-info-h .pc3i-late { background: var(--up, #E0474C); }

  /* 기본 정보: label left, value right, lines on one ruler */
  .pc3i-kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); column-gap: 28px; margin: 0; font-size: clamp(14px, calc(14px + (100vw - 1280px) * .01), 15px); font-variant-numeric: tabular-nums; }
  .pc3i-kv > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 40px; border-bottom: 1px solid var(--divider, #E4E6EB); white-space: nowrap; }
  .pc3i-kv dt { color: var(--sub); }
  .pc3i-kv dd { margin: 0; font-weight: 700; text-align: right; }
  .pc3i-kv dd small { margin-left: 6px; font-size: 14px; font-weight: 500; color: var(--sub); }
  .pc3i-kv .up { color: var(--up, #E0474C); }
  .pc3i-kv .dn { color: var(--down, #3870D8); }

  /* 호가 | 시세 시간별 side by side when B is wide enough, else one under the other */
  .pc3i-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 var(--pc3-gap); align-items: stretch; }
  .pc3i-two > .pc3-info { padding-left: 10px; padding-right: 10px; }
  .pc3i .pc3-tbl th, .pc3i .pc3-tbl td { height: 34px; }
  .pc3i-two .pc3-tbl th, .pc3i-two .pc3-tbl td { padding: 0 5px; }

  /* 호가: 매도잔량 | 호가 | 매수잔량 - the amount cells carry a bar as long as their share of the biggest amount */
  .pc3i-ob { table-layout: fixed; }
  .pc3i-ob th:first-child, .pc3i-ob th:nth-child(3) { width: 25%; }
  .pc3i-ob th, .pc3i-ob td { text-align: right; }
  .pc3i-ob th:first-child, .pc3i-ob td:first-child { text-align: right; color: inherit; }
  .pc3i-ob th:nth-child(2), .pc3i-ob td:nth-child(2) { text-align: center; }
  .pc3i-ob th:nth-child(3), .pc3i-ob td:nth-child(3) { text-align: left; }
  .pc3i-ob td:nth-child(2) b { font-weight: 700; }
  .pc3i-ob td:nth-child(2) small { margin-left: 6px; font-size: 14px; font-weight: 500; }
  .pc3i-ob tr.a td:nth-child(2) { background: rgba(56, 112, 216, .07); }
  .pc3i-ob tr.b td:nth-child(2) { background: rgba(224, 71, 76, .07); }
  .pc3i-ob tr.a td:first-child { background: linear-gradient(to left, rgba(56, 112, 216, .18) var(--w, 0%), transparent var(--w, 0%)); }
  .pc3i-ob tr.b td:nth-child(3) { background: linear-gradient(to right, rgba(224, 71, 76, .18) var(--w, 0%), transparent var(--w, 0%)); }
  .pc3i-ob tr.mid td { border-top: 1px solid var(--text, #1C1E21); }
  .pc3i-ob tfoot td { height: 34px; font-weight: 700; border-top: 1px solid var(--es-border, #E4E6EB); border-bottom: 0; background: var(--es-subtle, #F0F2F5); }
  .pc3i-ob tfoot td:nth-child(2) { font-weight: 500; color: var(--sub); }
  .pc3i-ob tbody tr:hover { background: none; }
}
