/* Math under pressure. A quiet card in the Case practice math view; every control shares a row and each solution sits under its problem. */
.pm-superseded{display:none!important}
.pm{margin:0 0 8px;padding:0;background:none;border:0;border-radius:0;color:#302b29}
.pm-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px}
#casing #pressure-math h3{margin:0;font:400 29px/36px Georgia,'Times New Roman',serif;color:#302b29}
#pressure-math button{line-height:20px}
#pressure-math>label{font:400 14px/20px system-ui,sans-serif}
.pm-eyebrow{font:400 12px/16px system-ui,sans-serif;letter-spacing:0;text-transform:none;color:#5c544e}
.pm-lede{margin:8px 0 0;font:400 14px/20px system-ui,sans-serif;color:#302b29}
.pm-run{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:8px 0;margin-top:8px}
.pm-levels{display:inline-flex;border:1px solid #d9d9d9;border-radius:6px;overflow:hidden;background:#fff}
.pm-levels button{min-height:44px;padding:0 16px;border:0;background:#fff;color:#302b29;font:400 14px/20px system-ui,sans-serif;cursor:pointer}
.pm-levels button+button{border-left:1px solid #d9d9d9}
.pm-levels button:hover{background:#f4e8e9}
.pm-levels button[aria-pressed=true]{background:#4b1020;color:#fff7ed;font-weight:600}
.pm .pm-start{min-height:44px;padding:0 16px;border:0;border-radius:6px;background:#800000;color:#fff;font:600 14px/20px system-ui,sans-serif;cursor:pointer}
.pm .pm-start:hover{background:#641c2d}
.pm-clock{font:600 20px/26px system-ui,sans-serif;font-variant-numeric:tabular-nums}
#pressure-math details{margin:0;padding:0;border:0;background:none;box-shadow:none}
#pressure-math details>summary{justify-content:flex-start;width:auto;margin:0;padding:0;border:0;background:none;min-height:44px;display:inline-flex;align-items:center;gap:8px;font:600 14px/20px system-ui,sans-serif;text-align:left;cursor:pointer;color:#800000}
#pressure-math details>summary::after{content:none!important}
.pm-worked[hidden]{display:none}
.pm-worked[open]{flex-basis:100%}
.pm-worked p{margin:4px 0;font:400 14px/20px system-ui,sans-serif}
.pm-list{margin:8px 0 0;padding:0;list-style:none;counter-reset:pm;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 24px}
.pm-list li{counter-increment:pm;display:grid;grid-row:span 3;grid-template-rows:subgrid;row-gap:8px;min-width:0;align-content:start}
.pm-list label{margin:0;font:400 14px/20px system-ui,sans-serif}
.pm-list label::before{content:counter(pm) ". ";color:#800000;font-weight:600}
.pm-answer{display:flex;flex-wrap:wrap;align-items:center;align-content:start;gap:0 8px}
.pm-list input{flex:1 1 90px;min-width:0;max-width:160px;min-height:44px;padding:6px 10px;border:1px solid #a6a6a6;border-radius:6px;background:#fff;color:#302b29;font:500 16px/1.3 system-ui,sans-serif}
.pm-list input:focus-visible{outline:3px solid #800000;outline-offset:1px}
.pm-list input[readonly]{background:#f2f1ee}
.pm-unit{font:400 14px/20px system-ui,sans-serif;color:#5c544e}
.pm-hint{margin-left:auto!important}
.pm-hint[open]{flex-basis:100%;margin-left:0!important}
.pm-hint p{margin:0 0 4px;font:400 14px/20px system-ui,sans-serif}
.pm-solution{padding-top:8px;border-top:1px solid #e6e2dc;outline:0}
.pm-solution p{margin:4px 0 0;font:400 14px/20px system-ui,sans-serif}
.pm-say{color:#4a4542}
.pm-mark{display:inline-block;padding:1px 8px;border-radius:4px;font:600 12px/16px system-ui,sans-serif}
.pm-ok{background:#e7edde;color:#284734}
.pm-no{background:#fbf0d1;color:#5c4300}
.pm-blank{background:#f2f1ee;color:#5c544e}
.pm-end{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:8px}
.pm-end p{margin:0;font:400 14px/20px system-ui,sans-serif}
.pm .pm-finish{min-height:44px;padding:0 16px;border:1px solid #800000;border-radius:6px;background:#fff;color:#800000;font:600 14px/20px system-ui,sans-serif;cursor:pointer}
.pm .pm-finish:disabled{opacity:.55;cursor:default}
.pm-foot{margin:8px 0 0;font:400 12px/16px system-ui,sans-serif;color:#5c544e}
.pm button:focus-visible,.pm summary:focus-visible{outline:3px solid #800000;outline-offset:2px}
.math-more{margin:0;border-top:1px solid #d9d9d9;border-bottom:1px solid #d9d9d9}
.math-more>summary{justify-content:flex-start!important;text-align:left;min-height:44px;padding:4px 0;font:600 14px/20px system-ui,sans-serif;cursor:pointer}
.math-more>summary::after{content:none!important}
.math-more[open]>summary{margin-bottom:10px}
@media(max-width:860px){.pm-list{grid-template-columns:1fr;row-gap:14px}.pm-list li{grid-row:auto;grid-template-rows:none}}
@media(max-width:600px){#casing #pressure-math h3{font-size:24px;line-height:30px}.pm-run{gap:8px}.pm-levels{display:flex;flex:1 1 100%}.pm-levels button{flex:1 1 0;padding:0 6px}.pm .pm-start{flex:1 1 auto}}
