/* HSC-only additions on top of BrainBridge's own stylesheet (bb.css). Keep this file small. */
.ph .qx{margin-bottom:12px}
.ph .qx .qs{font-size:15px;line-height:1.6;margin-bottom:8px;white-space:pre-wrap}
.ph .qx img{display:block;max-width:100%;max-height:170px;margin:6px 0}
.ph .op4 button img{max-height:120px}
.ph .qx .qna{font-size:12px;color:#A63D2F;margin-top:6px}
.ph .trow .mini span{font-size:10.5px}
.ph .qx .qstim{background:#F3EFE4;border-left:3px solid #2F7D68;border-radius:8px;padding:8px 10px;margin:4px 0 10px;font-size:14px;line-height:1.55;white-space:pre-wrap}
.ph .qx .qstim img{max-height:200px}

/* topic notes: blocks BrainBridge's note design does not have (formula card, worked example, figure, simulation) */
.ph .nn-eq{background:#fff;border:1.5px solid #CFE3D9;border-radius:12px;padding:4px 12px;margin:8px 0}
.ph .nn-eq>div{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;padding:7px 0;border-top:1px dashed #E2DDD2}
.ph .nn-eq>div:first-child{border-top:0}
.ph .nn-eq b{font-size:15.5px;color:#00573A;letter-spacing:.2px}
.ph .nn-eq span{font-size:12.5px;color:#5F5E59}
.ph .nn-wx{background:#fff;border:1.5px dashed #B9D3EC;border-radius:12px;padding:10px 12px;margin:8px 0;font-size:14px;line-height:1.6}
.ph .nn-exq i{display:inline-block;font-style:normal;font-size:11.5px;font-weight:700;color:#1B4C7A;background:#DCEAF7;border-radius:99px;padding:0 8px;margin-right:6px}
.ph .nn-wx ol{margin:6px 0 4px;padding-left:20px}
.ph .nn-wx li{margin:2px 0}
.ph .nn-exa{font-size:13.5px;color:#1B4C7A}
.ph .nn-fig{margin:10px 0;background:#fff;border:1.5px solid #E2DDD2;border-radius:12px;padding:10px}
.ph .nn-fig svg{display:block;width:100%;height:auto}
.ph .nn-fig figcaption{font-size:12.5px;color:#5F5E59;margin-top:6px;line-height:1.5}
.ph .nn-sim{border-color:#9CCBB4;background:#FBFDFC}
.ph .nn-simk{font-size:11.5px;font-weight:700;color:#006039;margin-bottom:4px}
.ph .sim-v{display:block;width:100%;height:auto;background:#fff;border-radius:8px}
.ph .sim-s{display:flex;align-items:center;gap:8px;font-size:13px;margin:6px 0}
.ph .sim-s span{flex:0 0 110px;color:#5F5E59}
.ph .sim-s input{flex:1;accent-color:#006039}
.ph .sim-s b{min-width:28px;text-align:right}
.ph .sim-s small{color:#8A867C;min-width:34px}
.ph .sim-r{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:13px;margin:6px 0}
.ph .sim-r:empty{display:none}
.ph .sim-b{border:0;background:#006039;color:#fff;font:inherit;font-size:13.5px;font-weight:700;border-radius:99px;padding:7px 16px;margin-top:4px;cursor:pointer}
.ph .lt-p[hidden]{display:none}
.ph .r3b-chips .meta{margin-left:6px}
.ph .sim-s input{min-width:0;width:100%}.ph .sim-s{min-width:0;max-width:100%}
/* doubtful answer keys (data/keyflags.json) */
.ph .qflag{display:inline-block;margin:2px 0 6px;padding:2px 9px;border-radius:999px;background:#F6E7D9;color:#8A4B12;font-size:12px;font-weight:700}
.ph .nt.qfl{margin-top:8px;background:#FBF3E8;border-color:#E9C9A2;color:#5A3510}
.ph .r3b-tabs{gap:2px}.ph .r3b-tabs button{flex:1 1 auto;font-size:13px;overflow:hidden;text-overflow:ellipsis}
/* subject page: filter tabs + chapter/year chips (one horizontal row) */
.ph .sj-tb{margin:14px 0 10px}
.ph .sj-chips{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin:0 -14px 12px;padding:2px 14px 4px}
.ph .sj-chips::-webkit-scrollbar{display:none}
.ph .sj-chips button{flex:0 0 auto;max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border:1.5px solid #E2DDD2;background:#fff;color:#1C1B18;font:inherit;font-size:13px;border-radius:99px;padding:6px 12px;cursor:pointer}
.ph .sj-chips button b{color:#006039;margin-right:2px}
.ph .sj-chips button.on{background:#006039;border-color:#006039;color:#fff}
.ph .sj-chips button.on b{color:#fff}
/* note tables: two even columns with a divider */
.ph .nn-rows>div{grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:0}
.ph .nn-rows>div>*:first-child{padding-right:12px;border-right:1px solid #E2DDD2}
.ph .nn-rows>div>*:last-child{padding-left:12px}
.ph .nn-rows .nn-rh{margin:0;padding:6px 0!important;background:none;border-bottom:1.5px solid #E2DDD2}
.ph .nn-kv>div{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);column-gap:0}
.ph .nn-kv>div>span{padding-right:12px;border-right:1px solid #E2DDD2}
.ph .nn-kv>div>b{padding-left:12px}
