/* 最大公因數與最小公倍數計算機頁專用樣式；共用元件沿用 site.css */
.gl-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gl-totals .total-box strong { word-break: break-all; }
.gl-short-wrap { overflow-x: auto; margin: 8px 0; }
.gl-short { border-collapse: collapse; font-family: ui-monospace, Consolas, monospace; font-size: 1.05rem; }
.gl-short td { padding: 4px 12px; text-align: right; white-space: nowrap; }
.gl-short td.gl-div { border-right: 2px solid var(--fg, #111); font-weight: 700; color: var(--brand); }
.gl-short tr:not(.gl-last) td:not(.gl-div):not(.gl-tag) { border-bottom: 2px solid var(--fg, #111); }
.gl-short td.gl-tag { font-family: inherit; font-size: .85rem; color: var(--muted); text-align: left; border: 0; }
.gl-short tr.gl-lcm td.gl-div { color: #b45309; }
.gl-short tr.gl-last td { font-weight: 700; }
@media (max-width: 480px) { .gl-totals { grid-template-columns: 1fr; } }
#gl-result .calc-sub, #gl-result .calc-table td, #gl-short-note { overflow-wrap: anywhere; }
