/* MCX-COMEX Spread Calculator (prefix mcs-). One metal at a time (Gold / Silver switch), then:
   market quotes -> adjustments -> verdict banner + stat tiles + gauge -> conversion ladder -> hedge sizing. */
.mcs-card { padding: 28px; }
.mcs-title-bar { background: linear-gradient(135deg, var(--site-dark) 0%, var(--site-dark-2) 100%); border-radius: 10px 10px 0 0; padding: 18px 24px; margin: -28px -28px 24px; }
.mcs-title-bar h1 { color: #fff; margin: 0; font-size: 1.4em; text-align: center; display: flex; align-items: center; justify-content: center; gap: 10px; }

.mcs-topline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.mcs-metal-switch { display: flex; border: 1px solid #e5e7eb; border-radius: 30px; padding: 4px; background: #f7f8fa; }
.mcs-metal-btn { border: none; background: none; padding: 9px 22px; border-radius: 26px; font-weight: 700; font-size: .92em; color: #6b7280; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: background .2s ease, color .2s ease; }
.mcs-metal-btn .mcs-dot { width: 10px; height: 10px; border-radius: 50%; background: #ca8a04; }
.mcs-metal-btn[data-metal="silver"] .mcs-dot { background: #94a3b8; }
.mcs-metal-btn.active { background: var(--site-dark); color: #fff; }
.mcs-metal-btn:hover:not(.active) { color: var(--site-dark); }
.mcs-sample { font: inherit; font-size: .85em; font-weight: 700; color: var(--site-dark); background: #fff; border: 1px dashed var(--site-dark); border-radius: 8px; padding: 8px 14px; cursor: pointer; transition: background .2s ease, color .2s ease; }
.mcs-sample:hover { background: var(--site-dark); color: #fff; border-style: solid; }

.mcs-group { margin-bottom: 20px; }
.mcs-group-title { font-size: .78em; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #6b7280; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.mcs-group-title i { color: var(--site-accent); }
.mcs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; }
.mcs-field label, .mcs-field .mcs-label { display: block; font-weight: 600; margin-bottom: 7px; font-size: .9em; color: #23272f; }
.mcs-input-row { display: flex; align-items: center; gap: 8px; border: 1px solid #ddd; border-radius: 8px; padding: 10px 12px; background: #fff; }
.mcs-input-row:focus-within { border-color: var(--site-dark); }
.mcs-prefix { font-weight: 700; color: var(--site-dark); flex: none; }
.mcs-suffix { font-size: .8em; color: #6b7280; flex: none; white-space: nowrap; }
.mcs-input-row input { border: none; outline: none; width: 100%; min-width: 0; font-size: 1em; background: none; color: #23272f; font-variant-numeric: tabular-nums; }
.mcs-field.mcs-bad .mcs-input-row { border-color: #b91c1c; background: #fef2f2; }
.mcs-field small { display: block; color: #6b7280; font-size: .8em; margin-top: 6px; }
.mcs-field select { border: 1px solid #ddd; border-radius: 8px; padding: 10px 12px; width: 100%; font-size: 1em; outline: none; box-sizing: border-box; background: #fff; color: #23272f; }
.mcs-field select:focus { border-color: var(--site-dark); }
.mcs-basis { display: flex; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; min-height: 42px; }
.mcs-basis-btn { flex: 1; border: none; background: #f7f8fa; color: #6b7280; font-size: .78em; font-weight: 700; padding: 0 8px; cursor: pointer; white-space: nowrap; transition: background .2s ease, color .2s ease; }
.mcs-basis-btn:not(:first-child) { border-left: 1px solid #ddd; }
.mcs-basis-btn.active { background: var(--site-dark); color: #fff; }
.mcs-basis-btn:hover:not(.active) { color: var(--site-dark); }

.mcs-verdict { border-radius: 10px; padding: 18px 20px; display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-items: center; background: #eef0f3; border: 1px solid #e3e6ea; margin-bottom: 16px; }
.mcs-verdict.mcs-prem { background: #fff7ed; border-color: #fed7aa; }
.mcs-verdict.mcs-disc { background: #eff6ff; border-color: #bfdbfe; }
.mcs-verdict.mcs-wait { grid-template-columns: 1fr; }
.mcs-chip { display: inline-block; font-size: .72em; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border-radius: 99px; padding: 4px 12px; background: #d1d5db; color: #374151; grid-column: 1 / -1; justify-self: start; }
.mcs-prem .mcs-chip { background: #b45309; color: #fff; }
.mcs-disc .mcs-chip { background: #1d4ed8; color: #fff; }
.mcs-headline { font-size: 2.1em; font-weight: 800; line-height: 1.05; color: #23272f; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mcs-headline small { display: block; font-size: .45em; font-weight: 700; color: #6b7280; margin-top: 4px; letter-spacing: .02em; }
.mcs-prem .mcs-headline { color: #b45309; }
.mcs-disc .mcs-headline { color: #1d4ed8; }
.mcs-verdict-text { margin: 0; font-size: .95em; color: #23272f; }
.mcs-verdict-text + .mcs-verdict-text { margin-top: 6px; color: #4b5563; font-size: .9em; }
.mcs-verdict-text strong { font-weight: 700; }

.mcs-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.mcs-tile { background: #fafbfc; border: 1px solid #eee; border-radius: 10px; padding: 14px 16px; }
.mcs-tile-k { font-size: .78em; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.mcs-tile-v { font-size: 1.25em; font-weight: 800; color: var(--site-dark); font-variant-numeric: tabular-nums; }
.mcs-tile-s { font-size: .8em; color: #6b7280; margin-top: 4px; }

.mcs-gauge { margin-bottom: 22px; }
.mcs-gauge-track { position: relative; height: 16px; background: #eef0f3; border-radius: 8px; border: 1px solid #e3e6ea; overflow: visible; }
.mcs-gauge-band { position: absolute; top: 0; bottom: 0; background: #d8dde3; border-radius: 8px; }
.mcs-gauge-zero { position: absolute; top: -4px; bottom: -4px; left: 50%; width: 2px; background: #6b7280; }
.mcs-gauge-needle { position: absolute; top: -6px; bottom: -6px; width: 6px; margin-left: -3px; border-radius: 3px; background: var(--site-dark); box-shadow: 0 0 0 2px #fff; transition: left .25s ease; }
.mcs-prem-needle { background: #b45309; }
.mcs-disc-needle { background: #1d4ed8; }
.mcs-gauge-scale { display: flex; justify-content: space-between; font-size: .78em; color: #6b7280; margin-top: 8px; font-variant-numeric: tabular-nums; }

.mcs-section { margin-top: 22px; }
.mcs-section h3 { font-size: 1em; font-weight: 700; color: #23272f; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.mcs-section h3 i { color: var(--site-accent); }
.mcs-ladder { width: 100%; border-collapse: collapse; font-size: .92em; }
.mcs-ladder th { text-align: left; font-size: .78em; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .05em; padding: 6px 8px; border-bottom: 2px solid #e5e7eb; }
.mcs-ladder th:last-child, .mcs-ladder td:last-child { text-align: right; }
.mcs-ladder td { padding: 9px 8px; border-bottom: 1px solid #eee; vertical-align: top; color: #23272f; }
.mcs-ladder td.mcs-op { color: #6b7280; font-size: .9em; white-space: nowrap; }
.mcs-ladder td:last-child { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mcs-ladder tr.mcs-sum td { background: #fafbfc; font-weight: 800; color: var(--site-dark); border-bottom: none; }
.mcs-ladder-wrap { overflow-x: auto; border: 1px solid #eee; border-radius: 10px; }
.mcs-hedge-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.mcs-note { margin: 10px 0 0; font-size: .86em; color: #6b7280; }
.mcs-note.mcs-warn { color: #b45309; font-weight: 600; }

@media (max-width: 900px) {
    .mcs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mcs-hedge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .mcs-card { padding: 18px; }
    .mcs-title-bar { margin: -18px -18px 18px; }
    .mcs-grid, .mcs-tiles { grid-template-columns: minmax(0, 1fr); }
    .mcs-verdict { grid-template-columns: 1fr; }
    .mcs-headline { font-size: 1.7em; white-space: normal; }
    .mcs-metal-switch { width: 100%; }
    .mcs-metal-btn { flex: 1; justify-content: center; }
    .mcs-sample { width: 100%; }
}
