/* Interactive simulations (sims.js): a Knox card with a blue border and edge. */
.knox-sim { margin: 14px 0 4px; padding: 14px; border: 2px solid var(--blue, #1CB0F6); border-radius: 20px; background: var(--surface, #fff); box-shadow: 0 4px 0 var(--blue-dark, #1899D6); font-family: Nunito, sans-serif; color: var(--text); }
.knox-sim:not([data-ready]) { display: none; }
.ksim-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ksim-badge { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--blue-light, #DDF4FF); border: 1.5px solid var(--blue, #1CB0F6); font-size: 19px; }
.ksim-head > span:nth-child(2) { flex: 1; min-width: 0; }
.ksim-head b { display: block; font-size: 16px; font-weight: 900; }
.ksim-head small { display: block; font-size: 13px; font-weight: 700; color: var(--text-light); }
.ksim-beta { flex: none; position: static; padding: 3px 8px; border-radius: 99px; background: #FFF4CC; color: #7A5600; border: 1.5px solid #F2B705; font-size: 11px; font-weight: 900; }
.ksim-canvas { display: block; width: 100%; height: 200px; border-radius: 14px; background: var(--cream, #FFF8F0); border: 1.5px solid var(--border); }
.ksim-readout { margin: 10px 2px 4px; font-size: 14px; font-weight: 800; line-height: 1.45; color: var(--text); }
.ksim-controls { display: grid; gap: 10px; margin-top: 8px; }
.ksim-slider { display: grid; gap: 4px; font-size: 13px; font-weight: 800; color: var(--text-light); }
.ksim-slider > span { display: flex; justify-content: space-between; gap: 8px; }
.ksim-slider b { color: var(--blue-dark, #1899D6); font-weight: 900; }
.ksim-slider input { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; margin: 10px 0; border-radius: 99px; background: linear-gradient(to right, var(--blue, #1CB0F6) var(--p, 50%), var(--border, #E8DCCB) var(--p, 50%)); outline: none; cursor: pointer; }
.ksim-slider input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--blue, #1CB0F6); box-shadow: 0 2px 0 var(--blue-dark, #0A85C2); }
.ksim-slider input::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--blue, #1CB0F6); box-shadow: 0 2px 0 var(--blue-dark, #0A85C2); }
.ksim-slider input:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue, #1CB0F6) 35%, transparent); }
.ksim-actions { display: flex; gap: 8px; margin-top: 12px; }
.ksim-play { min-height: 44px; padding: 0 18px; border-radius: 14px; border: 2px solid var(--blue-dark, #1899D6); background: var(--blue, #1CB0F6); color: #fff; font: 900 15px Nunito, sans-serif; box-shadow: 0 3px 0 var(--blue-dark, #1899D6); cursor: pointer; }
.ksim-play:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--blue-dark, #1899D6); }
html[data-theme="dark"]:not(.knox-seasonal) .ksim-beta { background: rgba(242,183,5,.16); color: #FFD45C; }
.ksim-reset { min-height: 44px; padding: 0 16px; border-radius: 14px; border: 2px solid var(--border, #E8DCCB); background: var(--surface, #fff); color: var(--text); font: 900 15px Nunito, sans-serif; box-shadow: 0 3px 0 var(--border, #E8DCCB); cursor: pointer; }
.ksim-reset:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--border, #E8DCCB); }
