
.xgate-story{display:flex;flex-direction:column;gap:20px}.xgate-function{display:flex;align-items:center;gap:14px 20px;flex-wrap:wrap;color:#0043ce;font-size:17px}.xgate-function b{color:#6929c4;font-weight:400}.xgate-lab{margin:0!important}.xgate-lab .experiment-heading{gap:16px}.xgate-lab .experiment-heading .controls{margin:0 0 0 auto}.xgate-roles{display:grid;grid-template-columns:1fr 1fr 1fr;gap:20px;font-size:15px;color:#0043ce;margin:24px 0 0}.xgate-roles>span:last-child{color:#6929c4}.xgate-calculation{display:grid;grid-template-columns:1.15fr 1fr;gap:28px;align-items:center}.xgate-calculation h3{font-size:20px}.xgate-effect{border-left:2px solid #a6c8ff;padding-left:26px}.xgate-effect>span{font-size:15px;color:#0043ce}.xgate-effect>strong{display:block;font-size:21px;font-weight:500;color:#6929c4}.xgate-takeaway{font-size:20px;margin:0;padding:14px 18px;background:#edf5ff;color:#0043ce}.xgate-details{display:grid;grid-template-columns:1.4fr 1fr;gap:24px}.xgate-details details{margin:0}.xgate-details details[open]{grid-column:1 / -1}.xgate-details .math.display{overflow-x:auto}
body.presenting .xgate-story{gap:16px;min-height:650px;justify-content:center}
body.presenting .xgate-story .xgate-function{font-size:25px;gap:18px}
body.presenting .xgate-story .xgate-lab{min-height:0;padding:24px}
body.presenting .xgate-story .experiment-heading label,body.presenting .xgate-story .experiment-heading select{font-size:25px!important}
body.presenting .xgate-story .experiment-heading .controls{margin:0 0 0 auto;gap:10px}
body.presenting .xgate-story .experiment-heading button{font-size:22px!important}
body.presenting .xgate-story .xgate-roles{font-size:24px;margin-top:22px}
body.presenting .xgate-story #matrix-equation{font-size:45px!important;min-height:146px;padding:18px 0}
body.presenting .xgate-story .xgate-calculation{gap:32px;grid-template-columns:1.1fr 1fr}
body.presenting .xgate-story .xgate-calculation h3{font-size:27px!important;margin-bottom:12px}
body.presenting .xgate-story .work-lines{min-height:104px;padding:16px 20px}
body.presenting .xgate-story .work-lines p{font-size:27px!important;line-height:1.5!important;margin:5px 0}
body.presenting .xgate-story .xgate-effect>span{font-size:23px}
body.presenting .xgate-story .xgate-effect .math.display{font-size:35px!important;padding:8px 0}
body.presenting .xgate-story .xgate-effect>strong{font-size:29px}
body.presenting .xgate-story .xgate-takeaway{font-size:27px!important;line-height:1.5!important;margin:0!important;padding:14px 20px}
body.presenting .xgate-story .xgate-details summary{font-size:23px!important;padding:12px 4px}
@media(max-width:700px){body:not(.presenting) .xgate-function{font-size:16px;gap:8px 12px}body:not(.presenting) .xgate-calculation,body:not(.presenting) .xgate-details{grid-template-columns:1fr}body:not(.presenting) .xgate-effect{border-left:0;border-top:1px solid #a6c8ff;padding:16px 0 0}body:not(.presenting) .xgate-lab .experiment-heading .controls{margin:10px 0 0}body:not(.presenting) .xgate-roles{font-size:13px;gap:8px}body:not(.presenting) #matrix-equation{font-size:21px}}

body.presenting #operators .xgate-lab{min-height:0}

body.presenting #operators .xgate-story{min-height:0;gap:12px}
body.presenting #operators .xgate-story #matrix-equation{font-size:39px!important;min-height:180px;padding:16px 0}
body.presenting #operators .xgate-details summary{line-height:1.3!important;font-size:22px!important;padding:10px 4px}
body.presenting #operators .xgate-effect>strong{font-size:26px}

/* Paired ket and column-vector notation. */
.hgate-intro{display:flex;flex-direction:column;gap:16px}
.hgate-definition{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:16px 24px;border-bottom:2px solid #d0e2ff}
.hgate-intro .equation-block{margin:0}
.hgate-probability{margin:0;color:#0043ce}
body.presenting #hgate .hgate-intro{gap:14px}
body.presenting #hgate .hgate-definition{padding:8px 24px;font-size:28px}
body.presenting #hgate .hgate-intro .math.display{font-size:36px!important}
body.presenting #hgate .hgate-intro .equation-block{padding:20px 28px}
body.presenting #hgate .hgate-probability{font-size:27px}
body.presenting #operators #matrix-ket{min-height:0;font-size:38px!important;padding:16px 0}
@media(max-width:700px){body:not(.presenting) .hgate-definition{flex-wrap:wrap}body:not(.presenting) .hgate-intro .math.display{overflow-x:auto}}

body.presenting #hgate .hgate-intro .equation-block,body.presenting #hgate .hgate-intro .hgate-probability{margin:0!important}
