/* PC 3-column screen - the top menus 1 · 2 · 3 · 4 (owner 2026-11-30, logs/shots/ref/client-pc-3col-todo.md 13 · 13-보강).
   static/js/pc3menu.js puts the parts of /event, /events and /ai into the frame (A · B · C); those parts keep their own pages'
   class names and styles (css/events.css, css/market_game.css, css/ai_live.css, css/ai_models.css). This file only fits them into
   the columns. Everything is inside the same media query as css/pc3.css: phones, tablets and narrower PCs are not touched. */
@media (min-width: 1280px) {
  /* C: the tab line with two or three word tabs (the words may take two lines; never under 15px) */
  html.pc3 .pc3-tabs button { padding: 0 4px; font-size: 15px; line-height: 1.2; text-align: center; word-break: keep-all; overflow-wrap: anywhere; }
  html.pc3 .pc3-tabs button[data-pc3-t0]:not(.pc3-t-word) { font-size: 16px; }
  html.pc3 .pc3-tabs button[hidden] { display: none; }
  html.pc3 .pc3-tabs button.pc3-t-word .ic { display: none; }
  html.pc3 .pc3-tabs button:not([hidden]) ~ button { border-left: 1px solid var(--es-border, #E4E6EB); }
  html.pc3 .pc3-tabs button[hidden] + button { border-left: 0; }
  /* the panes: one is shown, each scrolls by itself like the comment list */
  .pc3-c[data-pane]:not([data-pane="list"]) > .pc3-list, .pc3-c[data-pane]:not([data-pane="list"]) > .pc3-none { display: none; }
  .pc3-pane { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px 14px 16px; scrollbar-width: thin; }
  .pc3-pane[hidden] { display: none; }
  .pc3-c.pc3-busy .pc3-pane, .pc3-pane.pc3-wait, .pc3-wait { opacity: .5; }

  /* the parts of another page inside the frame: that page's own box (.mp) without its page width and page margins */
  .mp.pc3-mp { max-width: none; margin: 0; padding: 0; font-size: 16px; }
  .pc3-mp .mp-card { margin: 0 0 var(--pc3-gap, 8px); border-radius: 4px; box-shadow: none; }
  .pc3-pane .pc3-mp .mp-card { padding: 14px; }
  .pc3-pane .pc3-mp .mp-empty, .pc3-pane .pc3-mp > .al-empty { margin: 0; padding: 24px 0; text-align: center; color: var(--sub); }
  /* no letter under 14px on this screen (those pages' small captions are 12 - 13px) */
  .pc3-mp .mp-cap, .pc3-mp .mp-pill, .pc3-mp small, .pc3-mp .mp-table th, .pc3-mp .ev-rules span, .pc3-mp .dc-price em, .pc3-mp .dc-pts, .pc3-mp .ev-d { font-size: 14px; }
  .pc3-mp .mp-table td { font-size: 16px; }
  .pc3-p-h { margin: 0 0 8px; font-size: 17px; font-weight: 700; line-height: 1.35; }
  .pc3-p-cap { margin: 0 0 8px; font-size: 15px; color: var(--sub); }
  .pc3-p-h:not(:first-child) { margin-top: 20px; }

  /* B: the block of menu 2 above the chart, of menu 3 instead of the chart */
  .pc3-mb { margin: 0 0 var(--pc3-gap, 8px); }
  .pc3-mb .pc3-mp > :last-child { margin-bottom: 0; }
  .es-pd3.pc3-k-market > .es-pd-side > :not(.pc3-mb):not(.ft) { display: none !important; }

  /* ── 2 이벤트 예측 ── */
  .pc3-mb .ev-hero { margin: 0; padding: 12px 16px; border-radius: 4px; box-shadow: none; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; }
  .pc3-mb .ev-hero h1 { margin: 0; font-size: 20px; line-height: 1.3; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pc3-mb .ev-hero > p { grid-column: 1 / -1; margin: 0; font-size: 15px; }
  .pc3-mb .ev-hero .ev-rules { grid-column: 1 / -1; margin: 0; }
  .pc3-mb .ev-hero .ev-hero-foot { grid-column: 1 / -1; font-size: 15px; margin: 0 !important; }
  .pc3-mb .ev-hero .pc3-ev-join { grid-column: 3; grid-row: 1; margin: 0; }
  .pc3-mb .ev-hero .pc3-ev-join .mp-btn { height: 40px; font-size: 16px; }
  .pc3-mb .pc3-mp > .mp-empty { margin: 0; padding: 20px 16px; text-align: center; background: var(--es-surface, #fff); border: 1px solid var(--es-border, #E4E6EB); border-radius: 4px; color: var(--sub); }
  /* A: the event's stocks only, under their own title */
  .pc3-a-h { order: -1; flex: 0 0 auto; margin: 0; padding: 4px 4px 10px; font-size: 16px; font-weight: 700; line-height: 1.35; }
  .es-pd3.pc3-evf > .es-pl > .es-pl-tabs, .es-pd3.pc3-evf > .es-pl > .es-pl-top { display: none !important; }
  .es-pd3.pc3-evf #es-pd-list .es-card { display: none !important; }
  .es-pd3.pc3-evf #es-pd-list .es-card.pc3-ev { display: block !important; }
  /* C */
  .pc3-pane .ev-board li { gap: 10px; padding: 10px 0; font-size: 16px; }
  .pc3-pane .ev-board .ev-rank { flex: 0 0 auto; min-width: 22px; font-weight: 700; text-align: center; }
  .pc3-pane .ev-past { padding: 0; margin: 0; border: 0; box-shadow: none; background: none; }
  .pc3-pane .ev-past a { flex-wrap: wrap; gap: 4px 8px; padding: 10px 6px; font-size: 15px; border-radius: 4px; cursor: pointer; }
  .pc3-pane .ev-past a:hover { background: var(--hover); }
  .pc3-pane .ev-past a.on { background: var(--es-subtle, #F0F2F5); }
  .pc3-pane .ev-past a b { flex: 1 1 60%; }
  .pc3-pane .ev-past .ev-chev { display: none; }
  .pc3-ev-rh { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 0 0 4px; }
  .pc3-ev-rh b { font-size: 17px; line-height: 1.35; }
  .pc3-ev-res { min-height: 60px; }

  /* ── 3 증시 맞추기 ── */
  /* A: the index boxes instead of the stock boxes */
  .es-pd3.pc3-k-market > .es-pl > :not(.pc3-ma) { display: none !important; }
  .pc3-ma { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
  .pc3-ma > .pc3-mp { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
  .pc3-ma .dc-search { flex: 0 0 auto; width: auto; margin: 0 2px 8px; }
  .pc3-ma .dc-search .mp-input { width: 100%; height: 44px; font-size: 16px; border-radius: 4px; }
  .pc3-ma .dc-cards { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 2px 2px 8px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .pc3-ma .dc-card { flex: 0 0 auto; border-radius: 4px; box-shadow: none; }
  .pc3-ma .dc-card.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
  .pc3-ma .dc-card.mp-hide { display: none; }
  .pc3-ma .dc-card-top { padding: 12px 14px 8px; }
  .pc3-ma .dc-card-bot { padding: 8px 14px 12px; gap: 8px; flex-wrap: wrap; }
  .pc3-ma [data-dc-none] { margin: 0; padding: 20px 8px; text-align: center; color: var(--sub); }
  .pc3-ma [data-dc-none].mp-hide { display: none; }
  /* B */
  .pc3-mb .pc3-dc-hl { margin: 0 0 var(--pc3-gap, 8px); padding: 12px 16px; color: var(--m-red, #E0161E); font-weight: 800; font-size: 17px; line-height: 1.4;
    background: var(--es-surface, #fff); border: 1px solid var(--es-border, #E4E6EB); border-radius: 4px; }
  .pc3-mb .dc-bar { flex-wrap: wrap; gap: 12px 16px; padding: 14px 16px; }
  .pc3-mb .dc-bar > .mp-grow { min-width: 240px; }
  .pc3-mb .dc-board .mp-row { flex-wrap: wrap; gap: 8px; }
  .pc3-mb .mp-table tr[data-href] { cursor: pointer; }
  /* C */
  .pc3-pane .dc-picks li { gap: 10px; }
  .pc3-pane .dc-picks small { display: block; font-weight: 400; font-variant-numeric: tabular-nums; }
  .pc3-pane .pc3-mp .mp-row { flex-wrap: wrap; gap: 4px 8px; margin-bottom: 4px; }
  .pc3-pane .pc3-mp .mp-row h2 { margin: 0; font-size: 17px; }
  .pc3-m-form { margin: 0 0 4px; }
  .pc3-m-cms { list-style: none; margin: 0; padding: 0; }
  .pc3-m-cms > li.pc3-f { padding: 12px 0; border-top: 1px solid var(--divider, #E4E6EB); }
  .pc3-m-cms > li.pc3-f:first-child { border-top: 0; }
  .pc3-m-cms > li.pc3-f > ul { list-style: none; margin: 0; padding: 0; }
  .pc3-m-cms .es-cm { display: flex; gap: 12px; }
  .pc3-m-cms .es-cm.pc3-re { margin: 12px 0 0 44px; }
  .pc3-m-cms .es-cm-b { flex: 1 1 0; min-width: 0; }
  .pc3-m-cms .es-cm-h b { font-size: 15px; }
  .pc3-m-cms .es-cm-h time, .pc3-m-cms .es-rx, .pc3-m-cms .es-rx span { font-size: 14px; }
  .pc3-m-cms .es-cm-t { margin: 4px 0 0; font-size: 16px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }

  /* ── 4 AI 예측 ── */
  /* the lists are the phone's one-line-per-model form: the wide table of /ai (a column per model) does not fit a column of C */
  .pc3-pane .aim-phone { display: block; }
  .pc3-pane .aim-pc { display: none; }
  .pc3-pane .pc3-mp.al .al-card { margin: 16px 0 0; padding: 14px; border-radius: 4px; box-shadow: none; }
  .pc3-pane .pc3-mp.al .aim-box { margin: 0; }
  .pc3-pane .pc3-mp.al .aim-chipw { margin: 0 0 8px; }
  .pc3-pane .al-cap { font-size: 14px; }
  /* tab 2: the stock page's own box sits in the pane - the pane is the card, so the box keeps no border / padding of its own */
  .pc3-pane .pc3-mp > .es-box[data-aim] { margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none; }
  .pc3-pane .aim-box { padding: 0; border: 0; border-radius: 0; }
  .pc3-pane .aim-list > li { grid-template-columns: 22px 36px minmax(0, 1fr) auto; column-gap: 10px; align-items: start; }
  .pc3-pane .aim-list.norank > li { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .pc3-pane .aim-rank > li.top { background: none; margin: 0; padding: 12px 0; }
  .pc3-pane .aim-rank .aim-bar { display: none; }
  .pc3-pane .aim-ln.wide { grid-column: 3 / -1; }
  .pc3-pane .aim-list.norank .aim-ln.wide { grid-column: 2 / -1; }
  /* B: the last AI value and its date, between the name line and the chart (the line's colour = static/js/chart.js AI_COL) */
  .pc3-ai { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: 16px; line-height: 1.4; font-variant-numeric: tabular-nums; }
  .pc3-ai i { flex: 0 0 auto; width: 14px; height: 2px; background: #7A3FF2; }
  .pc3-ai b { font-weight: 700; color: #7A3FF2; }
  .pc3-ai time { color: var(--sub); }
  .pc3-ai strong { font-weight: 700; }
}
