/* pH page uses the Commercial Growers content container. */
.homepage .resource-main.ph-page{max-width:1440px;padding-inline:clamp(24px,4.5vw,60px)}
.ph-page .ph-intro-row{display:flex;flex-direction:column;align-items:stretch;gap:24px;margin-bottom:24px}
.ph-page .ph-intro-row .ph-growing{flex:none;width:100%;margin:0}
.ph-page #ph-medium-label{font-size:14px;font-weight:600;line-height:1.4;display:block}
.ph-page .ph-growing .ph-medium-options{display:flex;flex-wrap:nowrap;gap:10px;margin-top:10px}
.ph-page .ph-medium-options button{flex:none;min-width:106px;height:46px;padding:10px 22px;font-size:15px;line-height:1.3;white-space:nowrap}
.ph-page .ph-controls{padding:28px 32px}
.ph-page #ph-slider{margin:26px 0 14px;height:14px}
.ph-page .ph-target-track{margin:0 15px 12px;height:4px;background:none;border-radius:0}
.ph-page .ph-target-track>span{border-radius:0}
.ph-page .ph-target-track>span:before,.ph-page .ph-target-track>span:after{content:"";position:absolute;top:-3px;height:10px;width:2px;background:#c6e99c}
.ph-page .ph-target-track>span:before{left:0}.ph-page .ph-target-track>span:after{right:0}
.ph-page .ph-target-track>i{height:10px;top:-3px}
.ph-page .ph-ticks{margin-inline:15px;position:relative;height:25px}
.ph-page .ph-ticks span{position:absolute;transform:translateX(-50%)}
.ph-page .ph-ticks span:nth-child(1){left:0}.ph-page .ph-ticks span:nth-child(2){left:11.111%}.ph-page .ph-ticks span:nth-child(3){left:22.222%}.ph-page .ph-ticks span:nth-child(4){left:33.333%}.ph-page .ph-ticks span:nth-child(5){left:44.444%}.ph-page .ph-ticks span:nth-child(6){left:55.556%}.ph-page .ph-ticks span:nth-child(7){left:66.667%}.ph-page .ph-ticks span:nth-child(8){left:77.778%}.ph-page .ph-ticks span:nth-child(9){left:88.889%}.ph-page .ph-ticks span:nth-child(10){left:100%}
.ph-page .ph-scale-labels{position:relative;margin:0 15px;font-size:12px}.ph-page .ph-neutral{position:absolute;left:66.667%;transform:translateX(-50%)}
.ph-page .ph-target-label{margin:16px 0 0;font-size:13px;color:#d9edc7}
.ph-page .ph-presets{margin-top:20px}.ph-page .ph-presets button{min-height:40px}.ph-page .ph-presets button[aria-pressed="true"]{background:#b6dc89;color:#123b29;border-color:#b6dc89;font-weight:700}
.ph-page .ph-target-summary{display:flex;align-items:flex-start;gap:16px;padding:18px 22px;margin:20px 0 24px}
.ph-page .ph-target-summary h2{font-size:20px;margin:0 0 5px}.ph-page .ph-target-summary p{margin:0;font-size:15px;line-height:1.5}
.ph-page .ph-result-icon{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:50%;background:#d1e6b7;color:#173b29}.ph-page .ph-result-icon svg{width:24px;height:24px}.ph-page .ph-alert{display:none}
.ph-page .ph-target-summary:not([data-state="within"]){background:#fff8e9;border-color:#e5d9b9}.ph-page .ph-target-summary:not([data-state="within"]) .ph-result-icon{background:#f3e3b9;color:#74551b}.ph-page .ph-target-summary:not([data-state="within"]) .ph-check{display:none}.ph-page .ph-target-summary:not([data-state="within"]) .ph-alert{display:block}
.ph-page .ph-result-detail{margin-top:8px;font-size:13px;color:#52665b}.ph-page .ph-result-detail summary{cursor:pointer}.ph-page .ph-result-detail p{margin-top:8px}
@media(max-width:700px){.homepage .resource-main.ph-page{padding-inline:20px}.ph-page .ph-controls{padding:22px 18px}.ph-page .ph-control-top{align-items:flex-start}.ph-page .ph-control-top h2{font-size:23px}.ph-page .ph-control-top p{font-size:13px}.ph-page .ph-reading{flex-direction:column;align-items:flex-end;gap:6px}.ph-page .ph-reading label{font-size:12px}.ph-page .ph-target-summary{padding:16px;gap:12px}.ph-page .ph-target-summary h2{font-size:18px}}
@media(max-width:480px){.ph-page .ph-growing .ph-medium-options{flex-direction:column;gap:8px}.ph-page .ph-medium-options button{width:100%}.ph-page .ph-control-top{gap:12px}.ph-page .ph-reading input{width:74px}.ph-page .ph-presets{gap:8px}.ph-page .ph-presets>span{width:100%}.ph-page .ph-presets button{font-size:12px;padding:8px}.ph-page .ph-ticks{font-size:9px}}
/* Compact controls and aligned nutrient comparisons. */
.ph-page .ph-intro-row{gap:22px;margin-bottom:28px}
.ph-page .ph-controls{padding:24px 28px;margin-bottom:0}
.ph-page #ph-slider{margin-top:22px;margin-bottom:10px}
.ph-page .ph-ticks{font-size:13px;height:26px}
.ph-page .ph-scale-labels{font-size:13px}
.ph-page .ph-target-label{margin-top:10px;font-size:14px}
.ph-page .ph-presets{margin-top:16px;gap:10px;font-size:14px}
.ph-page .ph-presets button{min-height:36px;padding:7px 12px;font-size:14px}
.ph-page .ph-target-summary{margin:28px 0;padding:16px 20px;gap:16px;border-radius:8px}
.ph-page .ph-target-summary h2{font-size:19px}
.ph-page .ph-result-icon{width:38px;height:38px;flex-basis:38px;background:#83b35f;color:#fff}
.ph-page .ph-results-head{align-items:center;flex-direction:row;flex-wrap:wrap;gap:12px}
.ph-page .ph-legend{display:flex;gap:20px;margin:0;border:1px solid #dce4dc;border-radius:7px;padding:12px 14px}
.ph-page .ph-legend>span{display:flex;align-items:center;gap:10px;padding:0;background:none;color:#405449;font-size:13px;font-weight:400}
.ph-page .ph-key-band{width:40px;height:10px;border-radius:4px;background:#a8c995}
.ph-page .ph-key-line{width:3px;height:22px;background:#183f29}
.ph-page .ph-note{font-size:15px;margin:8px 0 18px}
/* Use the nutrient-group spacing for the explanatory panels too. */
.ph-page .ph-group,.ph-page > .ph-explainer{margin:18px 0}
.ph-page .ph-group-head,.ph-page .ph-nutrient{display:grid;grid-template-columns:38px minmax(160px,1.35fr) minmax(180px,1fr) 150px;gap:16px;padding:12px 18px;align-items:center}
.ph-page .ph-group-head{background:#f2f6ef;min-height:54px}
.ph-page .ph-group-head h3{grid-column:1/3;padding:0;background:none;font-size:19px}
.ph-page .ph-group-axis{grid-column:3;position:relative;height:24px;margin:0 4px;font-size:12px;color:#435c4d}
.ph-page .ph-group-axis span{position:absolute;transform:translateX(-50%);top:0}
.ph-page .ph-group-axis span:after{content:"";display:block;height:5px;width:1px;background:#9db1a1;margin:4px auto 0}
.ph-page .ph-nutrient-name small{font-size:14px;line-height:1.4;margin-top:3px}
.ph-page .ph-nutrient-name strong{font-size:16px}
.ph-page .ph-band{display:block;grid-column:auto;grid-row:auto;height:10px}
.ph-page .ph-band b{height:24px;top:-7px}
.ph-page .ph-status{display:flex;align-items:center;gap:10px;padding:0;background:none;color:#233d2f;text-align:left;font-size:13px;line-height:1.35;grid-column:auto;grid-row:auto}
.ph-page .ph-status:before{content:"";width:12px;height:12px;border-radius:50%;flex:0 0 12px;background:#7b8790}
.ph-page .ph-status.favorable:before{background:#69aa3e}
.ph-page .ph-status.variable:before{background:#efb329}
.ph-page .ph-status.limited:before{background:#c36954}
.ph-page .ph-status.excess:before{background:#d17b35}
@media(max-width:900px){.ph-page .ph-group-head,.ph-page .ph-nutrient{grid-template-columns:34px minmax(150px,1.2fr) minmax(140px,1fr) 116px;gap:12px;padding:12px 14px}.ph-page .ph-group-axis span:nth-child(even):not(:last-child){display:none}.ph-page .ph-legend{gap:16px}}
@media(max-width:650px){.ph-page .ph-controls{padding:20px 18px}.ph-page .ph-ticks{font-size:11px}.ph-page .ph-target-summary{padding:16px;gap:12px}.ph-page .ph-results-head{align-items:flex-start;flex-direction:column}.ph-page .ph-legend{border:0;padding:0;gap:16px}.ph-page .ph-legend>span{font-size:12px}.ph-page .ph-group-head{display:block;min-height:0;padding:14px}.ph-page .ph-group-axis{display:none}.ph-page .ph-nutrient{grid-template-columns:32px minmax(0,1fr);gap:8px 12px;padding:14px}.ph-page .ph-symbol{grid-row:1;align-self:start}.ph-page .ph-nutrient-name{grid-column:2;grid-row:1}.ph-page .ph-band{grid-column:2;grid-row:2;margin:8px 4px;height:8px}.ph-page .ph-nutrient .ph-status{grid-column:2;grid-row:3;font-size:13px}.ph-page .ph-presets{gap:8px}.ph-page .ph-presets button{font-size:12px;padding:7px 9px}}

/* Align the heading to the legend, preserving the legend’s top spacing. */
@media(min-width:651px){.ph-page .ph-results-head{align-items:flex-start;padding-top:0}}

/* Balance the visible space around the heading beneath the taller legend row. */
@media(min-width:651px){.ph-page .ph-results-head + .ph-note{margin-top:2px}}

/* Hydroponic guidance uses the single feed reference above, not per-nutrient pH ratings. */
.ph-page #ph-hydro-help[hidden],.ph-page #ph-legend[hidden]{display:none}
.ph-page #ph-hydro-help h2{font-size:19px;margin:0 0 12px}
.ph-page #ph-hydro-help p:last-child{margin-bottom:0}
.ph-page .ph-guidance-only .ph-group-head{display:block}
.ph-page .ph-guidance-only .ph-nutrient{grid-template-columns:38px minmax(0,1fr)}

/* Coco deliberately reuses the soil chart’s bar, marker and status styles. */
.ph-page #ph-coco-help[hidden],.ph-page #ph-current[hidden]{display:none}
.ph-page #ph-coco-help h2{font-size:19px;margin:0 0 12px}
.ph-page #ph-coco-help p:last-child{margin-bottom:0}
/* Use the same reading-field height as the EC / PPM controls. */
.ph-page .ph-reading input{box-sizing:border-box;height:48px;min-height:48px;padding-block:0;line-height:normal}
