/* ============================================================
   E-計算！ Fortune — 天中殺・空亡（tenchusatsu.html）だけで使う見た目
   共通（../assets/css/ek.css・css/fortune.css）の上に重ねる。色は変数だけを使う。クラス名は tc- で始める。
   ============================================================ */

.tc-quick { margin: 0 0 14px; }
.tc-quick ul { margin: 2px 0 0; }
.tc-quick li { margin: 2px 0; }

/* ---- 入力 ---- */
#form .field { min-width: 0; }
.tc-lbl { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.tc-lbl .hint { display: block; font-weight: 400; }
.tc-date { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; }
html[data-ui="v2"] .tc-date input[type="text"], html[data-ui="v2"] input.tc-text {
  flex: 1 1 auto; width: 100%; min-width: 0; height: 44px; padding: 0 12px; font-size: 15px; font-variant-numeric: tabular-nums;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r);
}
html[data-ui="v2"] .tc-date input[type="text"]:focus, html[data-ui="v2"] input.tc-text:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
html[data-ui="v2"] .tc-date input.bad, html[data-ui="v2"] input.tc-text.bad { border-color: var(--s2); border-width: 2px; }
.tc-pick {
  flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0;
  border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); color: var(--ink-2); cursor: pointer;
}
.tc-pick:hover { background: var(--accent-soft); color: var(--accent); }
.tc-pick:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.tc-pick svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.tc-native { position: absolute; right: 0; bottom: 0; width: 44px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
@media (max-width: 560px) { html[data-ui="v2"] .tc-date input[type="text"], html[data-ui="v2"] input.tc-text { font-size: 16px; } }
html[data-ui="v2"] select.tc-sel { width: 100%; max-width: 100%; min-width: 0; }
html[data-ui="v2"] .radio-row.tc-gen label { min-width: 0; text-align: center; line-height: 1.4; word-break: keep-all; overflow-wrap: anywhere; }
html[data-ui="v2"] .radio-row.tc-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
html[data-ui="v2"] .radio-row.tc-col label { min-width: 0; justify-content: flex-start; text-align: left; line-height: 1.5; overflow-wrap: anywhere; }
details.tc-more { margin: 4px 0 14px; border-top: 1px solid var(--grid); border-bottom: 1px solid var(--grid); padding: 2px 0; }
details.tc-more > summary { cursor: pointer; padding: 10px 2px; font-size: 13.5px; font-weight: 600; color: var(--accent); }
details.tc-more[open] > summary { margin-bottom: 4px; }
.tc-hint { margin: 2px 0 10px; font-size: 12.5px; }
.vp-samples .vp-sample { max-width: 100%; white-space: normal; text-align: left; }

/* ---- 結果 ---- */
/* 入れる前は案内（MS.wait）だけなので、高さは取っておかない（2026-11-04 たたむ見せ方） */
html[data-ui="v2"] .tc-out .res-hero .big b { font-size: clamp(28px, 9vw, 44px); overflow-wrap: normal; }
html[data-ui="v2"] .tc-out .res-mini .v { overflow-wrap: normal; word-break: normal; }
html[data-ui="v2"] .tc-out .res-mini .s { overflow-wrap: anywhere; }
@media (max-width: 400px) {
  html[data-ui="v2"] .tc-out .res-mini .v { font-size: 15px; }
  html[data-ui="v2"] .tc-out .res-mini .v.text { font-size: 13.5px; }
}
.tc-rule { font-size: 12.5px; line-height: 1.8; color: var(--ink-2); margin: 12px 0 0; padding: 8px 10px; border-radius: var(--r); background: var(--page); overflow-wrap: anywhere; }
.tc-sec { margin-top: 18px; min-width: 0; }
.tc-sec h3 { font-size: 15px; margin: 0; }
.tc-p { font-size: 13.5px; line-height: 1.8; margin: 8px 0 0; }
.tc-legend { font-size: 12px; color: var(--ink-2); line-height: 1.7; margin: 6px 0 0; }
.tc-alert { margin-top: 14px; font-size: 13.5px; line-height: 1.8; }
.tc-alert b { display: block; margin-bottom: 2px; }

/* いまの状態（年・月・日） */
.tc-now { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.tc-now li { padding: 8px 10px; border-radius: var(--r); border: 1px solid var(--grid); background: var(--surface); font-size: 13.5px; line-height: 1.7; overflow-wrap: anywhere; }
.tc-now li.tc-in { border-color: var(--accent); background: var(--accent-soft); }
.tc-now b { margin-right: 6px; }

/* 命式の中の空亡 */
table.data.tc-pil { width: 100%; table-layout: fixed; }
table.data.tc-pil th, table.data.tc-pil td { text-align: center; padding: 6px 2px; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
table.data.tc-pil th[scope="row"] { width: 5.2em; font-size: 12px; color: var(--ink-2); text-align: left; padding-left: 4px; }
.tc-big { display: block; font-size: 22px; line-height: 1.2; }
.tc-hit { display: inline-block; padding: 0 6px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 12px; }
.tc-na { color: var(--muted); }

/* 一覧の表 */
table.data.tc-list td { white-space: nowrap; font-size: 13px; }
table.data.tc-list tr.tc-curr td { background: var(--accent-soft); font-weight: 600; }
.tc-days { margin: 6px 0 0; padding-left: 1.1em; font-size: 13.5px; line-height: 1.8; }

/* 方式ごとの比較 */
.tc-cmp { margin-top: 14px; }
.tc-cmp h4 { font-size: 13.5px; margin: 0 0 4px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.tc-same { font-size: 12px; font-weight: 400; color: var(--muted); }
table.data.tc-cmpt td, table.data.tc-cmpt th { font-size: 12.5px; white-space: nowrap; }
table.data.tc-cmpt td.tc-mname { white-space: normal; min-width: 11em; max-width: 16em; line-height: 1.5; }
table.data.tc-cmpt tr.tc-diff td { background: var(--accent-soft); }
table.data.tc-cmpt tr.tc-diff td:not(.tc-mname) { color: var(--accent); font-weight: 700; }
table.data.tc-cmpt tr.tc-cur td.tc-mname { font-weight: 700; }

/* 解釈（本・公式サイトに書かれている読み方）。計算と見た目で分ける */
.tc-kai { margin-top: 16px; padding: 14px 14px 10px; border: 1px solid var(--grid); border-left: 4px solid var(--accent); border-radius: var(--r); background: var(--surface); min-width: 0; }
.tc-kai h3 { font-size: 15px; margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tc-kaitag { font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.tc-kai h4 { font-size: 13.5px; margin: 14px 0 4px; }
.tc-kl { margin: 4px 0 0; padding-left: 1.1em; font-size: 13.5px; line-height: 1.8; }
.tc-kl li { margin: 2px 0; }
.tc-bk { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 4px; font-size: 11px; line-height: 1.7; background: var(--page); color: var(--ink-2); white-space: nowrap; }

/* 本文の表 */
table.data.tc-types td { white-space: nowrap; font-size: 13px; }
table.data.tc-types td.tc-wrap { white-space: normal; min-width: 12em; }
table.data.tc-kai-t td { white-space: normal; min-width: 9em; line-height: 1.6; font-size: 13px; vertical-align: top; }
table.data.tc-kai-t td:first-child { min-width: 5em; white-space: nowrap; }
.tc-srch { font-size: 14px; margin: 14px 0 4px; }

/* ---- 答え（MS.answer）の下のくわしい欄（details.ms-sfold）の中 ---- */
details.ms-sfold > .tc-kai { margin-top: 4px; }
details.ms-sfold > .tc-sec:first-of-type, details.ms-sfold > .tc-p:first-of-type { margin-top: 4px; }
