/* RECATOOLS — Bond Convexity Calculator */
.bd-inputs { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 560px) { .bd-inputs { grid-template-columns: minmax(0,1fr); } }
.bd-inputs label { display: block; font-size: .75rem; font-weight: 600; color: #6b6760; margin-bottom: .25rem; }
.bd-inputs .input-prefix-wrap { display: flex; align-items: stretch; border: 1px solid #ebebeb; border-radius: 6px; background: #fff; overflow: hidden; min-width: 0; }
.bd-inputs .ipx-label { padding: .5rem .65rem; background: #f0ede9; font-size: .8rem; font-weight: 600; color: #6b6760; white-space: nowrap; border-right: 1px solid #ebebeb; }
.bd-inputs .ipx-label.suffix { border-left: 1px solid #ebebeb; border-right: none; }
.bd-inputs input, .bd-inputs select { flex: 1; min-width: 0; border: none; padding: .5rem .65rem; font-size: .9rem; font-family: inherit; background: transparent; color: #1a1814; width: 100%; box-sizing: border-box; }
.bd-inputs input:focus, .bd-inputs select:focus { outline: none; box-shadow: inset 0 0 0 2px #E8472F; }
.calc-btn { width: 100%; margin: 1rem 0; padding: .75rem 1.25rem; background: #E8472F; color: #fff; border: none; border-radius: 8px; font-size: .95rem; font-weight: 700; cursor: pointer; font-family: inherit; }
.calc-btn:hover { background: #c8391f; }
#error-box { display: none; margin: .5rem 0 1rem; padding: .5rem .75rem; background: #fef2f2; border-left: 3px solid #dc2626; border-radius: 0 6px 6px 0; font-size: .85rem; color: #7f1d1d; }
.bd-results { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .75rem; margin-top: 1rem; }
@media (max-width: 720px) { .bd-results { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 420px) { .bd-results { grid-template-columns: minmax(0,1fr); } }
.bd-stat { padding: 1rem; background: #fafaf9; border: 1px solid #ebebeb; border-radius: 12px; min-width: 0; }
.bd-stat--hi { background: #fef9c3; border-color: #fde047; }
.bd-stat-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #6b6760; }
.bd-stat-value { font-size: 1.4rem; font-weight: 800; font-family: 'IBM Plex Serif','DM Serif Display',serif; color: #1a1814; margin-top: .3rem; word-break: break-word; }
.bd-stat-sub { font-size: .75rem; color: #475569; margin-top: .2rem; }
.bc-compare { margin-top: 1rem; padding: 1rem 1.25rem; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px; font-size: .9rem; color: #166534; line-height: 1.6; }
.bc-compare strong { color: #14532d; }
/* cache-buster: 2026-05-29T00:00:00Z */
