/* 房貸試算（kit.css 之上只加版面）。字一律 ≥ 14px（.875rem）、可點的 ≥ 44px */
.mg-top { padding-bottom: 4px; }
.mg-grid { max-width: 1080px; margin: 0 auto; }
.mg-form { padding-top: 8px; }
.mg-out { padding-top: 0; }
.mg-seg2 { grid-template-columns: repeat(2, 1fr); }
.mg-seg3 { grid-template-columns: repeat(3, 1fr); }
.mg-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mg-chk { display: flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 6px; font-size: .92rem; }
.mg-chk input { width: 20px; height: 20px; min-height: 0; flex: none; }
.mg-qa { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 4px; margin: 0 0 14px; }
.mg-qa legend { padding: 0 6px; font-weight: 700; }
[hidden] { display: none !important; }

.mg-tot { margin: 12px 0 0; font-size: .95rem; }
.mg-tot b { font-variant-numeric: tabular-nums; }
.mg-steps, .mg-rows { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: .92rem; font-variant-numeric: tabular-nums; }
.mg-steps th, .mg-rows th { text-align: left; font-weight: 600; color: var(--ink-soft); padding: 6px 4px; border-bottom: 1px solid var(--line); }
.mg-steps td, .mg-rows td { padding: 8px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.mg-steps td small { display: block; color: var(--ink-soft); font-size: .875rem; }
.mg-steps tr.g td { color: var(--ink-soft); }
.mg-steps td:last-child, .mg-steps th:last-child { text-align: right; }
.mg-steps td:last-child b { font-size: 1.05rem; color: var(--ink); }
.mg-h3 { font: 700 1rem/1.4 var(--font-head); margin: 20px 0 8px; }
.mg-cmp { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 560px) { .mg-cmp { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.mg-cmp li { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.mg-cmp span { display: block; font-size: .875rem; color: var(--ink-soft); font-weight: 600; }
.mg-cmp b { display: block; font-size: 1.1rem; margin: 2px 0; font-variant-numeric: tabular-nums; }
.mg-cmp small { display: block; font-size: .875rem; color: var(--ink-soft); }
.mg-notes { margin: 16px 0 0; padding-left: 1.2em; font-size: .9rem; color: var(--ink-soft); }
.mg-notes li { margin: 4px 0; }
.mg-table { margin-top: 16px; }
.mg-table summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.mg-tw { max-height: 420px; overflow: auto; }
.mg-rows { margin-top: 4px; font-size: .875rem; }
.mg-rows td, .mg-rows th { text-align: right; padding: 6px 4px; }
.mg-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 14px; }
.mg-disclaim { font-size: .875rem; color: var(--ink-soft); margin-top: 14px; }

/* 點擊區 ≥44px（circuit 全站清單的量法 test/lib-mobile-mins.mjs）：只放 screen */
@media screen {
}

/* 「核對我聽到的」照雇主人事成本那套做成一張卡（hire-cost/style.css .hc-check）：沒有這層，手機上表單欄位直接貼到螢幕邊（dev2 10/19 做給 Joey 的長圖時看到） */
.mg-in { padding-top: 8px; display: grid; gap: var(--s2); }
.mg-check { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.mg-check > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 var(--s3); font-weight: 700; color: var(--band); }
.mg-check > summary::-webkit-details-marker { display: none; }
.mg-check > summary::after { content: "＋"; font-weight: 900; }
.mg-check[open] > summary::after { content: "－"; }
.mg-check .mg-form { padding: var(--s1) var(--s3) var(--s1); }
@media (min-width: 960px) { .mg-in { position: sticky; top: 76px; align-self: start; } }
