/* /moex/quotes/ (pipeline/pages/moexquotes.py, js/moexquotes.js): TradingView's table of Russian shares
   under our own switch of its column sets. The table is drawn late, in TradingView's frame, so its box is
   as tall as it will be from the first paint (nothing on the page moves when it arrives): most of the
   window, within limits. .stk-tv (css/stocks.css) gives the frame its inner sizes. */
/* a short head: the page is its table, which should stand in the first screen */
.mk-head { padding: 44px 0 0; gap: 10px; }
.mk-head h1 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -0.035em; max-width: none; }
.mk-head .lead { font-size: 17px; max-width: 96ch; }
.mk.section { margin-top: 0; padding-top: 0; }
.mk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 18px 0 10px; padding-right: 40px; }
.mk-bar .seg { margin: 0; }
.mk-about { margin: 0 0 12px; max-width: 92ch; min-height: 2.9em; }
.mk-about span[hidden] { display: none; }
.mk-tv { height: clamp(520px, 78vh, 900px); padding: 6px; }
.mk-tv iframe { display: block; }

/* the full-screen button (common.js) stands at the right end of the switch's row, above the table: over
   the table it would cover the head of its last column. In full screen: a strip of its own on top. */
.mk-full > .full-btn { top: -92px; right: 0; }
.mk-full.is-full { padding-top: 44px; }
.mk-full.is-full > .full-btn { top: 7px; right: 8px; }
.mk-full.is-full > .mk-tv { padding: 0; }

.mk-one .tv-full { margin-bottom: 10px; }
.mk-more h2 { margin-bottom: 6px; }

@media (max-width: 640px) {
  .mk-bar { margin-top: 18px; padding-right: 0; }
  .mk-bar .seg { flex-wrap: wrap; max-width: 100%; }   /* long labels of other languages go to a second row */
  .mk-head .lead { font-size: 16.5px; }
  .mk-about { min-height: 5.6em; }
  .mk-tv { height: clamp(460px, 74vh, 760px); padding: 2px; }
  .mk-full > .full-btn { top: auto; bottom: -36px; right: 0; }
  .mk-full.is-full > .full-btn { top: 7px; bottom: auto; right: 8px; }
}
