/* ============================================================
   E-計算！ Math 電子レンジの W 数と時間（math/denshi-renji.html）だけの見た目
   共通の部品は assets/css/tool-kit.css（sp-…）と ek-simple.css（ks-…）。色は変数だけを使う。
   ============================================================ */

/* 入力欄の背景は surface（tool-kit.css の textarea と同じ） */
#conv .input-unit input[type="text"] { background: var(--surface, #fff); }

/* 分と秒を横に並べる */
.rj-time { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* よく使う W を入れるボタン */
.rj-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rj-chip { appearance: none; border: 1px solid var(--line-strong); background: transparent; color: var(--ink-2); border-radius: 999px; padding: 4px 12px; min-height: 32px; font: inherit; font-size: 13px; font-variant-numeric: tabular-nums; cursor: pointer; }
.rj-chip::after { content: "W"; margin-left: 1px; font-size: 11.5px; }
.rj-chip:hover { background: var(--accent-soft); }
.rj-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rj-swap-row { margin: -4px 0 16px; }
.rj-mode { margin-top: 8px; }
.rj-mode label { white-space: nowrap; }

/* 答えの下の注意 */
ul.rj-notes { padding-left: 1.2em; }
ul.rj-notes li { margin: 4px 0; }

/* 図：W ごとの時間（横の棒。答えのすぐ下に開いて出す） */
.rj-fig { margin: 16px 0 0; }
.rj-fig svg { display: block; width: 100%; height: auto; max-width: 460px; }
.rj-fig figcaption { margin-top: 6px; font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.rj-bar { fill: var(--grid); stroke: none; }
.rj-bar.rj-from { fill: var(--surface); stroke: var(--ink); stroke-width: 1.5; }
.rj-bar.rj-to { fill: var(--accent); }
.rj-wl { fill: var(--ink-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.rj-val { fill: var(--ink-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.rj-strong { fill: var(--ink); font-weight: 700; }

/* 表 */
.rj-tbl td, .rj-tbl th, .rj-quick td, .rj-quick th { font-variant-numeric: tabular-nums; }
table.data.rj-tbl td:first-child { text-align: left; }
.rj-tbl th small { font-weight: 400; color: var(--muted); }

@media (max-width: 560px) {
  html[data-ui="v2"] table.rj-quick, html[data-ui="v2"] table.rj-tbl { font-size: 12.5px; }
  html[data-ui="v2"] table.rj-quick td { white-space: nowrap; }
  html[data-ui="v2"] table.rj-quick th, html[data-ui="v2"] table.rj-quick td { padding: 7px 3px; }
  html[data-ui="v2"] table.rj-quick th, html[data-ui="v2"] table.rj-quick td,
  html[data-ui="v2"] table.rj-tbl th, html[data-ui="v2"] table.rj-tbl td { padding: 7px 3px; }
  #conv .radio-row label { flex: 1 1 40%; }
}
