:root{--fg: #1f2933;--muted: #6b7785;--accent: #0b5cad;--bg: #ffffff;--border: #e2e8f0}*{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:var(--fg);background:var(--bg);line-height:1.6}a{color:var(--accent)}.container{max-width:960px;margin:0 auto;padding:0 1rem}.muted{color:var(--muted)}.site-header{border-bottom:1px solid var(--border)}.header-inner{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.5rem;padding-top:.75rem;padding-bottom:.75rem}.brand{font-weight:700;font-size:1.2rem;text-decoration:none;color:var(--fg)}.nav,.submenu{list-style:none;margin:0;padding:0}.nav{display:flex;gap:1.25rem;flex-wrap:wrap}.nav a{text-decoration:none;color:var(--fg)}.nav a:hover,.nav a.active{color:var(--accent)}.has-sub{position:relative}.submenu{display:none;position:absolute;top:100%;left:0;min-width:15rem;background:var(--bg);border:1px solid var(--border);border-radius:4px;padding:.5rem 0;z-index:10}.submenu a{display:block;padding:.25rem 1rem}.has-sub:hover>.submenu,.has-sub:focus-within>.submenu{display:block}main{padding-top:2rem;padding-bottom:3rem;min-height:60vh}.hero h1{margin-bottom:0;font-size:2.5rem}.tagline{margin:.25rem 0;font-size:1.25rem}.strengths{padding-left:1.25rem}.site-footer{border-top:1px solid var(--border);padding:1rem 0;color:var(--muted);font-size:.9rem}.rpn-form{display:grid;gap:.5rem;max-width:32rem}.rpn-form input,.rpn-form button{font:inherit;padding:.5rem .75rem;border:1px solid var(--muted);border-radius:4px}.rpn-form button{justify-self:start;background:var(--accent);color:#fff;cursor:pointer}.rpn-form button:disabled{opacity:.65;cursor:wait}.hp12c{max-width:39rem;margin:0 auto}.hp12c-intro{color:var(--muted)}.hp12c-body{padding:1.25rem;border:1px solid #263746;border-radius:1.25rem;background:linear-gradient(145deg,#374b5e,#1d2b37);box-shadow:0 1rem 2rem #0f172a33;color:#f8fafc}.hp12c-brand{display:flex;align-items:baseline;justify-content:space-between;padding:0 .15rem .8rem;color:#f8fafc}.hp12c-brand strong{font-size:1.5rem;letter-spacing:.12em}.hp12c-brand span{color:#d7a948;font-size:.65rem;font-weight:700;letter-spacing:.12em}.hp12c-screen{min-height:9.5rem;padding:.75rem 1rem;border:.5rem solid #202b2b;border-radius:.35rem;background:#c4d2ad;color:#1b2b21;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;box-shadow:inset 0 2px 6px #00000040}.hp12c-stack{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.5rem}.hp12c-stack-cell{min-width:0;display:flex;flex-direction:column;color:#52614e;font-size:.65rem;text-align:right}.hp12c-stack-cell strong{overflow:hidden;font-size:.75rem;font-weight:500;text-overflow:ellipsis}.hp12c-stack-cell.active{color:#1b2b21}.hp12c-main-display{display:block;overflow:hidden;min-height:2.75rem;padding-top:.2rem;font-size:clamp(1.7rem,8vw,2.5rem);line-height:1.1;text-align:right;text-overflow:ellipsis;white-space:nowrap}.hp12c-indicators{display:flex;justify-content:space-between;min-height:1rem;font-size:.65rem;font-weight:700}.hp12c-error{color:#912018;font-family:system-ui,sans-serif;font-size:.8rem}.hp12c-registers{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.4rem;margin:.9rem 0}.hp12c-register{min-width:0;display:flex;flex-direction:column;color:#d6e0e8;font-size:.65rem;text-align:center}.hp12c-register strong{overflow:hidden;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.7rem;font-weight:500;text-overflow:ellipsis}.hp12c-keypad{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.55rem}.hp12c-key{position:relative;min-height:3.2rem;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:.3rem;border:1px solid #101820;border-radius:.45rem;background:linear-gradient(#465563,#27343f);box-shadow:0 3px #111b22,0 4px 5px #00000040;color:#f8fafc;cursor:pointer;font:inherit;font-size:1rem;font-weight:700;touch-action:manipulation}.hp12c-key:hover{filter:brightness(1.15)}.hp12c-key:active{transform:translateY(2px);box-shadow:0 1px #111b22}.hp12c-key:focus-visible{outline:3px solid #e6bd58;outline-offset:2px}.hp12c-key.number{background:linear-gradient(#fcfcfb,#dce1e5);color:#17212b}.hp12c-key.operator{background:linear-gradient(#d5a944,#a77717);color:#17212b}.hp12c-key.shift{color:#f3cb66}.hp12c-key.selected{outline:2px solid #f3cb66;outline-offset:1px}.hp12c-key.function{font-size:.85rem}.hp12c-key-detail{position:absolute;top:.1rem;color:#f3cb66;font-size:.52rem;font-weight:500}.hp12c-key.wide{grid-column:span 2}.hp12c-help{color:var(--muted);font-size:.9rem}.hp12c kbd{padding:.05rem .3rem;border:1px solid var(--border);border-radius:.25rem;background:#f8fafc;color:var(--fg);font:inherit;font-size:.85em}@media(max-width:480px){.hp12c-body{padding:.8rem}.hp12c-keypad{gap:.45rem}.hp12c-key{min-height:2.8rem}}
