/* Scoped mathematical tools. Main-site typography, header and footer are shared. */
.gg-reader .g-explorer{border:1px solid #b7c6b9;background:#fbfcf7;padding:clamp(1rem,3vw,1.7rem);margin:1.5rem 0;min-width:0}
.gg-reader .g-explorer>h3{font:400 1.7rem/1.3 Georgia,serif;color:#163c3e;margin-top:0}
.g-explorer :is(.g-units,.g-hint,.g-control small){font-size:.88rem;line-height:1.65;color:#3f5a50}
.g-explorer fieldset{border:1px solid #b7c6b9;min-width:0;margin:1.4rem 0;padding:1rem}
.g-explorer legend{font-weight:700;color:#244b43;padding:0 .4rem}
.g-explorer .g-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.05rem 1.3rem}
.g-explorer .g-control{display:flex;flex-direction:column;gap:.4rem;font-size:.93rem;font-weight:600;min-width:0}
.g-explorer :is(input,select){width:100%;min-width:0;min-height:46px;padding:.6rem .7rem;border:1px solid #879b8d;border-radius:.3rem;background:#fffefa;font:inherit;color:#163c3e;box-sizing:border-box}
.g-explorer [aria-invalid=true]{outline:2px solid #8c3229;outline-offset:1px}
.g-explorer .g-actions{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1rem}
.g-explorer .g-actions button{font:inherit;min-height:44px;border:1px solid #244b43;background:#244b43;color:#fffefa;padding:.6rem .85rem;border-radius:.3rem;cursor:pointer}
.g-explorer .g-actions [data-reset],.g-explorer [data-download=csv]{background:#fffefa;color:#244b43}
.g-explorer button:disabled{opacity:.55;cursor:default}
.g-explorer .g-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem 1rem;margin:1.4rem 0}
.g-explorer .g-metrics>div{padding:.8rem 0;border-top:1px solid #c9d2c4;min-width:0}
.g-explorer dt{font-size:.88rem;line-height:1.5;color:#435c51}
.g-explorer dd{font-size:1.24rem;line-height:1.5;color:#163c3e;margin:.25rem 0 0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.g-explorer .g-status{padding:.8rem 1rem;background:#e8efe3;border-left:3px solid #487660;font-size:.92rem;line-height:1.6}
.g-explorer .g-error{padding:.8rem 1rem;background:#fff0e8;border-left:3px solid #8c3229;color:#702a24;font-size:.92rem}
.g-explorer [hidden]{display:none!important}
.g-explorer .g-chart{margin:1.5rem 0;background:#fffefa;border:1px solid #d5dccf;padding:.5rem;min-width:0}
.g-explorer .g-chart svg{display:block;width:100%;height:auto;overflow:visible}
.g-explorer .g-chart figcaption{font-size:.86rem;line-height:1.7;padding:.5rem .5rem .75rem}
.g-explorer .g-label{font:15px system-ui,sans-serif;fill:#244b43}
.g-explorer .g-grid{stroke:#dbe2d5;stroke-width:1}
.g-explorer .g-axis{stroke:#748d7d;stroke-width:1.5}
.g-explorer .g-curve{fill:none;stroke-width:3;stroke-linejoin:round;stroke-linecap:round}
.g-explorer .g-series-0{stroke:#245e56;color:#245e56}
.g-explorer .g-series-1{stroke:#a25822;color:#a25822;stroke-dasharray:8 5}
.g-explorer .g-series-2{stroke:#655080;color:#655080;stroke-dasharray:2 5}
.g-explorer .g-legend.g-series-2::before{content:'··· '}
.g-explorer .g-point{fill:#fffefa;stroke-width:2;stroke-dasharray:none}
.g-explorer .g-legend{display:inline-block;margin-right:1rem;font-weight:700}
.g-explorer .g-legend::before{content:'— ';font-weight:800}
.g-explorer .g-legend.g-series-1::before{content:'┄ '}
.g-explorer .g-node{fill:#e8efe3;stroke:#3d6b59;stroke-width:2}
.g-explorer .g-arrow{stroke:#3d6b59;stroke-width:2.5}
.g-explorer .g-table-wrap{overflow:auto;max-width:100%;margin:1.3rem 0;border:1px solid #d0d9c9}
.g-explorer table{border-collapse:collapse;width:100%;font-size:.86rem;line-height:1.6;min-width:480px;background:#fffefa}
.g-explorer caption{text-align:left;font-weight:700;color:#244b43;padding:.8rem;background:#edf1e8}
.g-explorer th,.g-explorer td{text-align:left;vertical-align:top;padding:.7rem .8rem;border-bottom:1px solid #dbe2d5}
.g-explorer td{font-variant-numeric:tabular-nums}
.g-explorer thead th{background:#f4f6ee}
.g-explorer .g-equations{border-top:1px solid #c9d2c4;margin:1rem 0;padding-top:.6rem}
.g-explorer .g-equations .f-equation{font-size:.93rem;line-height:1.85;overflow-wrap:anywhere}
@media(max-width:570px){.g-explorer .g-controls,.g-explorer .g-metrics{grid-template-columns:1fr}.gg-reader .g-explorer{padding:.85rem}.g-explorer fieldset{padding:.7rem}.g-explorer dd{font-size:1.2rem}.g-explorer .g-actions button{width:100%}}
@media print{.g-explorer fieldset,.g-explorer .g-actions{display:none!important}.gg-reader .g-explorer{border:0;padding:0;background:white}.g-explorer .g-table-wrap{overflow:visible}.g-explorer table{min-width:0;font-size:8pt}.g-explorer .g-chart{break-inside:avoid}.g-explorer .g-metrics{grid-template-columns:1fr 1fr}.g-explorer .g-error{display:none}}
