/* SWP Calculator — scoped styles, using the site palette tokens. */

.swp { max-width: 820px; }

.swp-notice {
  background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--radius);
  padding: 14px 16px; color: var(--muted); font-size: 0.95rem; margin-bottom: 22px;
}

/* Form */
.swp-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 20px; align-items: end; }
.swp-field label { display: block; font-weight: 600; margin-bottom: 2px; }
.swp-hint { display: block; font-weight: 400; font-size: 0.82rem; color: var(--muted-light); }
.swp-check { grid-column: 1 / -1; }
.swp-check label { display: flex; align-items: center; gap: 9px; margin: 0; cursor: pointer; }
.swp-check input { width: 16px; height: 16px; accent-color: #3c6ec8; }
.swp-actions { display: flex; gap: 10px; flex-wrap: wrap; grid-column: 1 / -1; }

/* Result */
.swp-result { margin-top: 24px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-soft); box-shadow: var(--shadow-sm); }
.swp-result.is-warn { background: var(--warn-bg); border-color: var(--warn-line); }
.swp-result-head { margin: 0 0 8px; font-size: 1.25rem; }
.swp-big { color: #1b7a43; white-space: nowrap; }
.swp-big.swp-bad { color: #c0392b; }
.swp-result-sub { color: var(--muted); margin: 0 0 16px; }

.swp-table { width: 100%; border-collapse: collapse; }
.swp-table th, .swp-table td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 400; background: none; }
.swp-table th { color: var(--muted); }
.swp-table td { text-align: right; font-variant-numeric: tabular-nums; }
.swp-table .swp-sub th, .swp-table .swp-sub td { font-weight: 600; color: var(--ink); }
.swp-table .swp-total th, .swp-table .swp-total td { font-weight: 700; color: var(--ink); border-bottom: 0; border-top: 2px solid var(--line); font-size: 1.05rem; }
.swp-table .swp-real th, .swp-table .swp-real td { font-weight: 600; color: #b9770a; }

.swp-flag { margin-top: 14px; padding: 10px 14px; border-radius: var(--radius); background: #fdecec; border: 1px solid #f1aeae; color: #c0392b; }
.swp-foot-note { color: var(--muted-light); font-size: 0.85rem; margin-top: 16px; }

.swp-know { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.swp-know h2 { font-size: 1.3rem; margin: 0 0 12px; }
.swp-know p { color: var(--muted); }

.swp-faq { margin-top: 32px; }
.swp-faq h2 { font-size: 1.3rem; margin: 0 0 12px; }
.swp-faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.swp-faq summary { cursor: pointer; font-weight: 600; }
.swp-faq p { color: var(--muted); margin: 10px 0 0; }
