/* Measurement uncertainty calculator: page-specific styles (reuses .ulr-* from styles.css) */
.prose .ulr-tool h3.mu-step { margin: 30px 0 4px; font-size: 1.05rem; }
.prose .ulr-tool h3.mu-step:first-of-type { margin-top: 18px; }
.prose .ulr-tool .mu-sub { font-size: .95rem; margin: 0 0 12px; }
.mu-tool select { width: 100%; box-sizing: border-box; border: 1px solid #d6dedb; border-radius: 12px; padding: 11px 12px; font: inherit; font-size: 1rem; font-weight: 400; background: #fff; color: var(--ink); }
.mu-tool select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(20,160,138,.18); }
.mu-tool textarea { background: #fff; font-family: inherit; min-height: 84px; box-sizing: border-box; }
.mu-tool label small { font-weight: 400; color: var(--text-2); font-size: .8rem; line-height: 1.35; }
.mu-stats { margin-top: 2px; font-size: .9rem; color: var(--teal-ink); font-weight: 600; overflow-wrap: anywhere; }
.mu-choice { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 8px; }
.mu-choice legend { font-size: .88rem; font-weight: 600; margin-bottom: 8px; padding: 0; }
.mu-choice label { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: .95rem; line-height: 1.45; color: var(--text); background: #fff; border: 1px solid var(--teal-line); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.mu-choice input[type=radio] { width: 18px; height: 18px; flex: none; margin: 2px 0 0; accent-color: var(--teal-strong); box-shadow: none; padding: 0; }
.mu-choice label b { font-weight: 600; }
.mu-rows { display: grid; gap: 14px; }
.mu-row { border: 1px solid var(--teal-line); border-radius: 16px; background: #fff; padding: 14px 16px 16px; margin: 0; min-width: 0; }
.mu-row.mu-row-bad { border-color: #e4a29b; }
.mu-row legend { font-size: .82rem; font-weight: 700; letter-spacing: .02em; color: var(--teal-ink); padding: 0 6px; margin-left: -6px; }
.mu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.mu-grid .mu-wide { grid-column: 1 / -1; }
.mu-grid label[hidden] { display: none; }
.mu-row-msg { margin-top: 8px; font-size: .88rem; }
.mu-row-msg:empty { display: none; }
.mu-remove, .mu-btn { border: 1px solid var(--teal); background: #fff; color: var(--teal-ink); border-radius: 999px; padding: 9px 16px; font-family: inherit; font-size: .88rem; font-weight: 600; line-height: 1.1; cursor: pointer; }
.mu-remove { margin-top: 12px; border-color: #d6dedb; color: var(--text-2); }
.mu-remove:hover { border-color: #b42318; color: #b42318; }
.mu-btn:hover:not(:disabled) { background: var(--teal); color: #fff; }
.mu-btn:disabled { opacity: .45; cursor: not-allowed; }
.mu-btn:focus-visible, .mu-remove:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.mu-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.mu-result strong { letter-spacing: .01em; }
.mu-result .mu-k { margin-left: auto; font-size: .88rem; color: var(--teal-ink); }
.mu-warn { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: #fff7e6; border: 1px solid #f0d49b; color: #6b4600; font-size: .92rem; }
.mu-out > .ulr-hint { margin-top: 10px; }
.prose .mu-out .table-wrap { margin: 14px 0 0; }
.mu-figs th { font-weight: 500; color: var(--text-2); width: 52%; min-width: 0 !important; }
.mu-figs td { min-width: 0 !important; overflow-wrap: anywhere; }
.mu-figs table { font-size: .92rem; }
.mu-budget table { font-size: .88rem; }
.mu-budget th, .mu-budget td { min-width: 0 !important; padding: 9px 11px !important; white-space: nowrap; }
.mu-budget td:first-child { white-space: normal; min-width: 11em !important; }
.mu-budget td:nth-child(2) { white-space: normal; min-width: 10em !important; }
.mu-budget .n { text-align: right; font-variant-numeric: tabular-nums; }
.mu-budget tr.mu-total td { background: var(--paper); font-weight: 600; color: var(--ink); }
.prose .ulr-tool h3.mu-h { margin: 22px 0 0; font-size: 1rem; }
.mu-statement { margin-top: 10px !important; padding: 14px 16px; background: #fff; border: 1px solid var(--teal-line); border-radius: 14px; font-size: .95rem !important; color: var(--text) !important; }
.prose table.mu-ex td.n, .prose table.mu-ex th.n { text-align: right; font-variant-numeric: tabular-nums; }
.prose .formula { margin: 14px 0; padding: 12px 16px; background: var(--paper); border-radius: 12px; font-size: 1rem; color: var(--ink); overflow-x: auto; }
@media (max-width: 560px) {
  .mu-grid { grid-template-columns: 1fr; }
  .mu-row { padding: 12px 12px 14px; }
}
.prose blockquote { margin: 14px 0; padding: 2px 0 2px 18px; border-left: 3px solid var(--teal); }
.mu-tool .row2 { align-items: start; }
.prose .mu-stats { font-size: .9rem; }
.prose .mu-out .ulr-hint, .prose .mu-out .ulr-err { font-size: .95rem; }
.prose .mu-warn { font-size: .92rem; color: #6b4600; }
.mu-grid { align-items: start; }
.mu-budget td:nth-child(2) { min-width: 13em !important; }
.mu-figs tbody tr:last-child th { border-bottom: 0; }
.mu-budget th, .mu-budget td { padding: 8px 9px !important; }
.mu-budget td:first-child { min-width: 9em !important; }
.mu-budget td:nth-child(2) { min-width: 11em !important; }
.mu-budget thead th:nth-child(n+3) { text-align: right; }
.table-wrap table.mu-ex th, .table-wrap table.mu-ex td { min-width: 0; padding: 9px 10px; }
.table-wrap table.mu-ex td:first-child { min-width: 9em; }
.table-wrap table.mu-ex td:nth-child(2) { min-width: 8em; }
.table-wrap table.mu-ex .n { white-space: nowrap; }
