/* はめあい公差の計算だけの見た目（共通の style.css に足さない）。
   色は共通の墨・藍・茶だけ。図の中で彩度を持つのは「すきま／しめしろ」の1か所だけ（茶＝注目点）。 */

#symbol {
  font-family: var(--mono);
  font-size: 20px; /* 16px 以上（iPhone で拡大されない） */
  letter-spacing: 0.02em;
}

.hk-results { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.hk-results:empty { display: none; }

.hk-standard { font-size: 14px; color: var(--muted); }

.hk-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
}
.hk-card.hk-sunken { background: transparent; }
.hk-card h3, .hk-history h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.hk-card p { overflow-wrap: anywhere; }

.hk-big { font-size: 20px; font-weight: 600; line-height: 1.4; }
.hk-total { font-size: 26px; font-weight: 700; line-height: 1.3; }
.hk-big.mono, .hk-total.mono { font-variant-numeric: tabular-nums; }
.hk-accent { color: var(--warn); }
.hk-ratio { font-size: 16px; font-weight: 600; }

.hk-button {
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  min-height: 40px;
  padding: 8px 16px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: var(--surface);
  cursor: pointer;
}

.hk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hk-chip {
  font-family: var(--mono);
  font-size: 14px;
  min-height: 36px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
  cursor: pointer;
}
.hk-chip:hover { border-color: var(--accent); }

.hk-history { display: flex; flex-direction: column; gap: 6px; }
/* 数値の出どころ（閉じた欄＝共通の details.tip。アプリも「根拠と注意」のシートに入れていて、開くまで見えない） */
.hk-provenance ul { overflow-wrap: anywhere; gap: 6px; }

/* ── 公差域の図 ── */
.hk-figure { margin: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.hk-figure svg { display: block; width: 100%; max-width: 480px; height: auto; align-self: flex-start; overflow: visible; }
.hk-figure figcaption { font-size: 14px; font-weight: 600; }
.hk-figure text { font-family: var(--font); font-variant-numeric: tabular-nums; }
.hk-fig-ink { stroke: var(--fg); }
.hk-fig-band { fill: var(--fg); fill-opacity: 0.12; stroke: var(--fg); }
.hk-fig-accent { fill: var(--warn); }
.hk-fig-title { fill: var(--fg); font-size: 12px; font-weight: 600; }
.hk-fig-muted { fill: var(--muted); font-size: 11px; }
.hk-fig-faint { fill: var(--muted); font-size: 10px; opacity: 0.8; }

/* ── よくある質問 ── */
.hk-faq { display: flex; flex-direction: column; gap: 4px; }

/* ── 説明のページの表 ──
   ★390 の幅で「すきまばめ」が1字ずつ折れていた（種類の欄が狭められる）。折らずに、表の枠の中で横に送る（ダクトと同じ） */
.table-wrap td { white-space: nowrap; }
