/* Scoped fifth-round surfaces: existing tools keep their original styling. */
.pathway-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.pathway-grid .pathway-card{display:flex;flex-direction:column;gap:0;min-width:0;padding:28px;border-radius:18px;background:#fff;color:#16372f;text-decoration:none;border:1px solid #bdcec3;box-shadow:0 3px 0 #16372f08;transition:transform .15s,box-shadow .15s,border-color .15s}
.pathway-grid .pathway-card:hover{transform:translateY(-3px);border-color:#17624c;box-shadow:0 14px 26px #16372f13}
.pathway-grid .pathway-featured{background:#153c36;color:#f7fbf6;border-color:#153c36}
.pathway-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}
.pathway-tag{font-size:11px;letter-spacing:.12em;font-weight:800;color:#365d50}
.pathway-number{width:36px;height:36px;flex-shrink:0;display:grid;place-items:center;border-radius:10px;background:#e8eee4;color:#264c3f;font-size:14px;font-weight:800}
.pathway-card h3{font-size:25px;line-height:1.2;margin:0 0 14px;color:inherit}
.pathway-grid .pathway-card p{font-size:15px;line-height:1.65;color:#496056;margin:0 0 22px}
.pathway-cta{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:14px;font-weight:760;font-size:14px;line-height:1.5;color:#17583f;min-height:32px}
.pathway-featured .pathway-tag,.pathway-grid .pathway-featured p{color:#d6e7df}
.pathway-featured .pathway-cta{color:#a9f0ce}
.pathway-featured .pathway-number{background:#b9edcf;color:#153c36}
.pathway-card:focus-visible{outline:3px solid #ad6315;outline-offset:4px}
.profile-intro h1{max-width:850px}
.profile-labels{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
.profile-labels span{border:1px solid #c3d7c9;background:#e5efe4;color:#264b3f;border-radius:7px;padding:7px 12px;font-size:14px;font-weight:650}
.profile-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr);gap:24px;align-items:start}
.profile-layout>*{min-width:0}
.profile-editor{padding:30px;background:#fff;border:1px solid #bfcfc3;border-radius:22px;color:#18372f}
.profile-section-top{display:flex;align-items:start;justify-content:space-between;gap:18px;margin-bottom:16px}
.profile-section-top h2{font-size:29px;margin:0}
.profile-count{background:#e9f0e6;color:#2c513e;font-size:13px;line-height:1.5;font-weight:700;padding:7px 10px;border-radius:7px;white-space:nowrap}
.profile-help{font-size:14px!important;line-height:1.7;color:#465f53;margin:14px 0}
.profile-demo-actions{display:flex;align-items:center;flex-wrap:wrap;gap:14px;padding-block:10px}
.profile-mode{padding:11px 14px;background:#eaf0e8;border-radius:8px;color:#294d3e;font-size:14px;line-height:1.5;margin:14px 0 22px}
.profile-layer{border:1px solid #becfc4;border-radius:12px;padding:10px 16px 17px;margin:0 0 16px;min-width:0;background:#fafcf8}
.profile-layer legend{font-weight:780;font-size:14px;padding:0 7px;color:#234c3e}
.profile-layer-fields{display:grid;grid-template-columns:1fr 1fr 1.1fr auto;gap:12px;align-items:end}
.profile-layer-fields>div{min-width:0}
.profile-layer label{display:block;font-size:14px;font-weight:700;line-height:1.4;margin-bottom:8px;color:#2c4d40}
.profile-layer input{display:block;width:100%;min-width:0;min-height:48px;padding:9px 10px;border:1px solid #8fa998;border-radius:8px;background:#fff;color:#163c2d;font:inherit;font-size:16px;line-height:1.5}
.profile-layer input::placeholder{color:#576a5e;opacity:1}
.profile-remove{padding:10px;min-height:48px;border:1px solid #b6c7ba;border-radius:8px;background:#fff;color:#4f382d;font-size:14px;font-weight:650}
.profile-editor-actions{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;margin-top:20px}
.profile-editor button:disabled{background:#e4eae2;color:#516149;border-color:#aabaad;opacity:1;cursor:not-allowed}
.profile-boundary{border-top:1px solid #d1ddd0;padding-top:18px;margin-top:22px}
.profile-error{background:#fff0e5;border:1px solid #bf7343;color:#712d18;padding:14px 16px;border-radius:9px;font-size:15px;line-height:1.6}
.profile-explainer{background:#153c36;color:#f6fbf4;padding:30px;border-radius:22px}
.profile-explainer .eyebrow{color:#b6ebcf;font-size:11px}
.profile-explainer h2{font-size:32px;color:#f6fbf4}
.profile-promise{padding:20px 0;border-top:1px solid #537168}
.profile-promise strong{display:block;color:#f6fbf4;font-size:16px;margin-bottom:7px}
.profile-promise p,.profile-explainer .profile-help{font-size:14px;color:#d6e7df;line-height:1.7;margin:0}
.profile-explainer a{color:#b6ebcf;font-size:15px;font-weight:700;display:inline-block;margin:9px 0 18px}
.profile-result{margin-top:35px;padding:32px;border:1px solid #aec8b6;border-radius:22px;background:#fff;color:#1c3f30;scroll-margin-top:105px}
.profile-result-heading{display:flex;align-items:start;justify-content:space-between;gap:22px;margin-bottom:25px}
.profile-result-heading h2{font-size:31px;margin:0;max-width:750px}
.profile-result-heading .btn{flex-shrink:0}
.profile-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:25px}
.profile-metrics article{background:#e9f2e7;border:1px solid #bdd4bf;border-radius:14px;padding:21px}
.profile-metrics .profile-missing{background:#f6ebd9;border-color:#ddcbaa}
.profile-metrics span{display:block;font-size:14px;line-height:1.5;color:#345442}
.profile-metrics strong{display:block;font-size:34px;line-height:1.2;letter-spacing:-.035em;margin:12px 0;color:#1b4631}
.profile-metrics p{font-size:14px;line-height:1.5;color:#3e5a48;margin:0}
.profile-rail-caption{display:flex;justify-content:space-between;gap:15px;color:#345342;font-size:14px;font-weight:650;margin-bottom:9px}
.profile-rail{display:flex;height:44px;border:1px solid #4b6b57;border-radius:9px;overflow:hidden;background:#eef0e6}
.profile-segment{display:block;flex:none;box-shadow:inset -1px 0 #143c3250}
.profile-band-low{background:#c5e7cf;color:#153d2b}
.profile-band-moderate{background:#e7dd9c;color:#423b16}
.profile-band-high{background:#eac397;color:#54341e}
.profile-band-very-high{background:#e9b3a4;color:#572c24}
.profile-band-unknown{background:repeating-linear-gradient(135deg,#e5e9e2 0,#e5e9e2 6px,#c1cdc1 6px,#c1cdc1 8px);color:#273f2b}
.profile-table-wrap{max-width:100%;overflow:auto;margin-top:25px}
.profile-table{width:100%;border-collapse:collapse;font-size:14px;line-height:1.6;text-align:left}
.profile-table caption{font-size:16px;font-weight:730;text-align:left;padding-bottom:12px;color:#254633}
.profile-table th,.profile-table td{padding:13px 12px;border-bottom:1px solid #d0ddd0;color:#294a37;vertical-align:top}
.profile-table thead th{background:#ecf2e9;color:#244e37;white-space:nowrap}
.profile-table-band{display:inline-block;padding:3px 9px;border-radius:5px;font-weight:700;white-space:nowrap}
.profile-arithmetic{padding:14px 0;border-color:#cbd9cc;font-size:15px;margin-top:18px}
.profile-arithmetic p{color:#425a49;font-size:15px}
.profile-result-notice{border-left:4px solid #337b55;background:#edf3e8;padding:18px 20px;margin:20px 0}
.profile-result-notice strong{font-size:16px;color:#224730}
.profile-result-notice p{margin:9px 0 0;font-size:15px;color:#3b5542}
.profile-export-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.profile-export-status{font-size:14px;color:#2c5b3c;margin:12px 0}
.profile-print-limits{font-size:14px;line-height:1.7;color:#4b6250}
.profile-method-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px;margin:32px 0}
.profile-method-grid article{min-width:0}
.profile-method-grid h3{margin-top:22px;font-size:24px}
.profile-method-grid p{font-size:16px;color:#4a6053}
.profile-formula{padding:24px;background:#153c36;border-radius:14px;color:#f6fbf4;margin:20px 0}
.profile-formula span{display:block;color:#c7e4d7;font-size:14px;margin-bottom:12px}
.profile-formula strong{font-size:23px;line-height:1.5;overflow-wrap:anywhere}
.profile-formula p{color:#dcece4;font-size:15px;margin:12px 0 0}
.profile-next{display:flex;justify-content:space-between;gap:30px;padding:28px;background:#e4efdf;border:1px solid #bdd3ba;border-radius:16px;margin:35px 0}
.profile-next h3{font-size:24px;margin:0 0 12px}
.profile-next p{font-size:15px;color:#456046;margin:0;max-width:670px}
.profile-next .actions{flex-shrink:0;flex-direction:column;justify-content:center;align-items:stretch}
.profile-inline-link{padding:18px;background:#e5eee0;color:#244b34;border:1px solid #bfd0b9;border-radius:10px;margin:0 0 25px}
.profile-inline-link p{font-size:15px;color:#3e5d43;margin:8px 0 0}
.profile-editor :focus-visible,.profile-result :focus-visible{outline:3px solid #a96512;outline-offset:4px}
@media(max-width:1050px){.profile-layer-fields{grid-template-columns:1fr 1fr 1.1fr}.profile-remove{grid-column:1/-1;justify-self:start;min-height:44px}.profile-layout{grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr)}.pathway-card h3{font-size:23px}.pathway-grid .pathway-card{padding:23px}}
@media(max-width:800px){.pathway-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-layout{grid-template-columns:1fr}.profile-explainer{display:grid;grid-template-columns:1fr 1fr;gap:0 25px}.profile-explainer>h2,.profile-explainer>.eyebrow,.profile-explainer>a,.profile-explainer>.profile-help{grid-column:1/-1}.profile-explainer .profile-promise:last-of-type{grid-column:1/-1}.profile-next{flex-direction:column}.profile-next .actions{flex-direction:row;flex-wrap:wrap;justify-content:start}.profile-result-heading{flex-direction:column}.profile-method-grid{gap:24px}.profile-metrics strong{font-size:28px}}
@media(max-width:540px){.pathway-grid{grid-template-columns:1fr}.pathway-grid .pathway-card{padding:23px}.pathway-top{margin-bottom:16px}.pathway-card h3{font-size:25px}.profile-editor,.profile-explainer,.profile-result{padding:20px}.profile-section-top{flex-direction:column;gap:12px}.profile-layer{padding:9px 12px 14px}.profile-layer-fields{grid-template-columns:1fr 1fr;gap:14px 10px}.profile-layer-fields>div:nth-child(3){grid-column:1/-1}.profile-remove{grid-column:1/-1;width:100%}.profile-editor-actions>.btn{width:100%}.profile-explainer{display:block}.profile-metrics{grid-template-columns:1fr}.profile-metrics article{padding:18px}.profile-metrics strong{font-size:34px}.profile-method-grid{grid-template-columns:1fr;gap:0}.profile-table{min-width:550px}.profile-rail-caption{font-size:14px}.profile-result h2{font-size:29px}.profile-export-actions>.btn{flex:1 1 100%}.profile-formula strong{font-size:20px}.profile-next{padding:22px}.profile-demo-actions>.btn{width:100%}}
@media(prefers-reduced-motion:reduce){.pathway-grid .pathway-card{transition:none}.pathway-grid .pathway-card:hover{transform:none}}
@media print{body[data-page="/tools/soil-profile/"] .header,body[data-page="/tools/soil-profile/"] .footer,.profile-intro,.profile-layout,.profile-method,.profile-export-actions,.profile-result-heading>.btn,.profile-export-status{display:none!important}.profile-result:not([hidden]){display:block!important;width:100%;padding:0;margin:0;border:0}.profile-result[hidden]{display:none!important}.profile-metrics{grid-template-columns:repeat(3,1fr)}.profile-table-wrap{overflow:visible}.profile-table{min-width:0;font-size:11pt}.profile-metrics article,.profile-table tr{break-inside:avoid}.profile-rail,.profile-table-band{-webkit-print-color-adjust:exact;print-color-adjust:exact}.profile-print-limits{font-size:10pt}.profile-arithmetic>p{display:block!important}}

/* Keep the secondary reset action visibly within the design system even in reduced shells. */
.profile-demo-actions .text-button{min-height:44px;padding:10px 14px;border:1px solid #adc1b3;border-radius:10px;background:#fff;color:#184f3d;text-decoration:none;line-height:1.4}.profile-demo-actions .text-button:hover{background:#edf4ec}
