/* 「株価と平均線」の列（static/js/ma-position.js）の見た目。色は変数で持つ。
   上（●）はアプリの主の深い緑、下（○）は灰色（2026-10-03 五島さん）。
   下にあるのは「悪い」ではなく場面による（割安と見る考え方もある）ので赤にしない。
   明るい緑にしない（売買のサインのように強く見えるため）。●と○は形でも区別できる。 */
:root {
    --ma-dot-on: #2d6a4f;
    --ma-dot-off: #a8aea9;
    --ma-dot-none: #b5b5b5;
    --ma-pop-bg: #2b2f2d;
    --ma-pop-text: #ffffff;
    --ma-focus: #1b4332;
}
.ma-th { width: 106px; min-width: 106px; }
.watchlist-table th.ma-th { white-space: nowrap; line-height: 1.25; }
.ma-head-title { display: inline-block; }
.ma-head-sub { display: block; font-size: 0.65rem; font-weight: 400; opacity: 0.8; }
.ma-help {
    display: inline-flex; align-items: center; justify-content: center;
    width: 16px; height: 16px; margin-left: 3px; padding: 0;
    border: 1px solid var(--ma-dot-off); border-radius: 50%;
    background: transparent; color: inherit; font-size: 0.65rem; line-height: 1;
    cursor: pointer; vertical-align: middle;
}
.ma-help:hover, .ma-help[aria-expanded="true"] { background: var(--ma-dot-off); color: var(--ma-pop-text); }
.ma-help:focus-visible, .ma-cell:focus-visible { outline: 2px solid var(--ma-focus); outline-offset: 2px; }

.ma-cell {
    display: inline-flex; gap: 2px; align-items: center;
    padding: 2px 3px; border: 0; background: transparent; cursor: pointer;
    font: inherit; line-height: 1;
}
.ma-dot { display: inline-block; width: 1.1em; text-align: center; font-size: 0.85rem; }
.ma-dot.is-on { color: var(--ma-dot-on); }
.ma-dot.is-off { color: var(--ma-dot-off); }
.ma-dot.is-none { color: var(--ma-dot-none); }

/* ツールチップと「？」の吹き出し。表の横スクロール枠で切れないよう body 直下に固定で出す */
.ma-pop {
    position: fixed; z-index: 3000; max-width: min(280px, calc(100vw - 16px));
    padding: 8px 10px; border-radius: 8px;
    background: var(--ma-pop-bg); color: var(--ma-pop-text);
    font-size: 0.78rem; line-height: 1.5; white-space: normal; pointer-events: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.ma-pop[hidden] { display: none; }
.ma-help-pop { pointer-events: auto; }
