/* ============================================================
   モンテカルロ資産シミュレーション（money/monte-carlo.html）だけの見た目
   共通は ../assets/css/ek.css（v2 層）と money.css。色は変数だけを使う
   ============================================================ */
.mc-group { margin: 6px 0 4px; padding-top: 10px; border-top: 1px dashed var(--line); }
.mc-group > .mc-gh { font-size: 13px; font-weight: 700; color: var(--ink-2); margin: 0 0 6px; }

/* 結果のすぐ上の注意 */
.mc-caution { margin: 0 0 12px; padding: 8px 12px; border-left: 4px solid var(--accent); background: var(--accent-soft); font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.6; }

/* 今のお金／名目の切り替え */
.mc-switch { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; }
.mc-switch button {
  font: inherit; font-size: 13px; padding: 6px 12px; border-radius: 6px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); cursor: pointer; min-height: 36px;
}
.mc-switch button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }

/* グラフ */
.mo-chart .mc-det { fill: none; stroke: color-mix(in srgb, var(--ink) 45%, var(--surface)); stroke-width: 2; stroke-dasharray: 6 4; }
.mo-chart .mc-ref { stroke: var(--tint-warn-ink, #8A4B00); stroke-width: 1; stroke-dasharray: 3 3; }
.mo-chart .mc-ref-t { fill: var(--tint-warn-ink, #8A4B00); font-size: 11px; }
.mo-legend i.mc-det { border-top: 2px dashed color-mix(in srgb, var(--ink) 45%, var(--surface)); }

/* 表 */
.mc-box { margin-top: 22px; }
.mc-box h3 { font-size: 15px; margin: 0 0 6px; }
.mc-box p { font-size: 13.5px; line-height: 1.8; margin: 6px 0; }
table.mc-tbl { font-size: 13.5px; }
table.mc-tbl th[scope="row"] { text-align: left; white-space: nowrap; }
table.mc-tbl td.bad { color: var(--tint-warn-ink); font-weight: 700; }
table.mc-tbl tr.mc-retire th, table.mc-tbl tr.mc-retire td { background: var(--accent-soft); }
.article code { font-size: 12.5px; overflow-wrap: anywhere; }
