/* 手紙のおもさ 専用スタイル（共通の base.css の後に読む） */
.calc { margin: 8px 0 24px; }
.calc h2 { font-size: 1rem; margin: 18px 0 8px; padding: 0; border: 0; }
.calc h2:first-child { margin-top: 0; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 14px; }
.field label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 2px; }
.calc select, .calc input {
  font: inherit; width: 100%; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink);
}
.calc input.n { width: 6em; text-align: right; }
.calc input:focus, .calc select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.extras { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 14px; }
.extras label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.95rem; }
.hint { color: var(--muted); }
.warn { color: var(--accent); }
.result { padding: 14px 18px; }
.result.best { border: 2px solid var(--accent); }
.big { font-size: 1.6rem; font-weight: 700; margin: 0; font-variant-numeric: tabular-nums; }
.big .sub { font-size: 1rem; font-weight: 400; color: var(--muted); margin-left: 6px; }
.method { margin: 6px 0 0; font-size: 1.05rem; }
.method strong { font-size: 1.3rem; }
.detail { margin: 6px 0 0; font-size: 0.9rem; color: var(--muted); }
.detail.strong { color: var(--ink); font-weight: 600; }
.table-wrap { overflow-x: auto; }
table.guide { border-collapse: collapse; font-size: 0.9rem; min-width: 460px; }
table.guide th, table.guide td { border-bottom: 1px solid var(--line); padding: 6px 10px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.guide th:first-child, table.guide td:first-child { text-align: left; }
