/* Matrix Capital — Investor Tools shared styles (mirrors main site) */
* { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; }

.btn-primary {
    background: linear-gradient(135deg, #053d7c 0%, #042e5f 100%);
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(5, 61, 124, 0.35); }

.btn-warm {
    background: linear-gradient(135deg, #D3AF7B 0%, #c49a4a 100%);
    color: #1e293b;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-warm:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(211, 175, 123, 0.35); }

.gradient-text {
    background: linear-gradient(135deg, #053d7c 0%, #6b8cae 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gradient-hero { background: linear-gradient(135deg, #053d7c 0%, #6b8cae 100%); }
.dots-pattern {
    background-image: radial-gradient(#cbd5e1 1.5px, transparent 1.5px);
    background-size: 24px 24px;
}

/* ---- form elements ---- */
.mc-input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
    padding: 0.45rem 0.7rem;
    font-size: 0.875rem;
    color: #1e293b;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.mc-input:focus { outline: none; border-color: #053d7c; box-shadow: 0 0 0 3px rgba(5,61,124,.12); }
.mc-input::placeholder { color: #cbd5e1; }
/* hide native number spinners — they steal inner width and clip values (Safari) */
.mc-input::-webkit-outer-spin-button,
.mc-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mc-input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.mc-input.text-right { text-align: right; }
.mc-input-auto { background: #f0f5fa; border-style: dashed; }

.mc-out {
    display: block;
    padding: 0.45rem 0.7rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #042e5f;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 0.65rem;
    text-align: right;
    white-space: nowrap;
}
.mc-out.neg { color: #b91c1c; }
.mc-out.pos { color: #15803d; }

.mc-label { display:block; font-size: .75rem; font-weight: 500; color: #64748b; margin-bottom: .25rem; }

/* input with % suffix (like a currency field): value + % centered as a unit */
.mc-pct { position: relative; display: block; }
.mc-pct .mc-input { text-align: center; padding-left: 0.5rem; padding-right: 1.6rem; }
td .mc-pct { min-width: 6rem; }
.mc-pct::after {
    content: '%';
    position: absolute; right: .55rem; top: 50%;
    transform: translateY(-50%);
    font-size: .8rem; font-weight: 600; color: #94a3b8;
    pointer-events: none;
}
.mc-card { background:#fff; border:1px solid #f1f5f9; border-radius:1rem; box-shadow: 0 1px 3px rgba(15,23,42,.04); }
.mc-section-title { display:flex; align-items:center; gap:.6rem; font-weight:700; color:#042e5f; }
.mc-section-title .bar { width:4px; height:1.1rem; border-radius:2px; background: linear-gradient(180deg,#D3AF7B,#c49a4a); }

table.mc-table { width:100%; border-collapse: collapse; }
table.mc-table th { font-size:.72rem; text-transform:uppercase; letter-spacing:.05em; color:#94a3b8; font-weight:600; text-align:left; padding:.4rem .5rem; border-bottom:1px solid #f1f5f9; }
table.mc-table td { padding:.3rem .5rem; border-bottom:1px solid #f8fafc; font-size:.85rem; vertical-align: middle; }
table.mc-table tr:hover td { background:#fafcfe; }

.nav-link { position:relative; padding:.5rem .9rem; border-radius:.75rem; font-weight:500; color:rgba(255,255,255,.8); transition: all .2s; font-size:.9rem; }
.nav-link:hover { color:#fff; background:rgba(255,255,255,.1); }
.nav-link.active { color:#042e5f; background: linear-gradient(135deg,#D3AF7B,#c49a4a); font-weight:600; }

@media print {
    header, footer, .no-print { display: none !important; }
    body { background: #fff !important; }
    .mc-card { box-shadow:none !important; border-color:#e2e8f0 !important; break-inside: avoid; }
    main { padding-top: 0 !important; }
}
