/* Percentages preserve the visitor's browser font preference too. */
html[data-text-size="100"]{font-size:100%!important;--ss-text-scale:1}
html[data-text-size="125"]{font-size:125%!important;--ss-text-scale:1.25}
html[data-text-size="150"]{font-size:150%!important;--ss-text-scale:1.5}
html[data-text-size="175"]{font-size:175%!important;--ss-text-scale:1.75}
html[data-text-size="200"]{font-size:200%!important;--ss-text-scale:2}
body.large-text{--font-scale:1!important}
.ss-home{position:fixed;top:12px;left:12px;z-index:170;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:10px 14px;border:1px solid #cfc5cb;border-radius:999px;background:#fff;color:#251528;box-shadow:0 6px 20px #25152820;font:700 .86rem/1.25 system-ui,sans-serif;text-decoration:none}
.ss-home svg{width:20px;height:20px;flex-shrink:0}
.ss-text-button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;min-width:44px;padding:10px 13px;border:1px solid #ffffff80;border-radius:999px;background:transparent;color:inherit;font:700 .8rem/1.25 system-ui,sans-serif;cursor:pointer;white-space:normal}
.ss-text-button .ss-aa{font-size:1rem;letter-spacing:-.08em;flex-shrink:0}
.ss-home:focus-visible,.ss-text-button:focus-visible,.ss-text-dialog :focus-visible{outline:3px solid #e97858;outline-offset:3px}
.ss-form-page{font-size:.9375rem;padding-bottom:calc(110px + env(safe-area-inset-bottom,0px))}
.ss-form-page .public-nav{padding-top:calc(62px + .75rem)}
.ss-form-page .public-shell{max-width:1100px;min-width:0;overflow-wrap:anywhere}
.ss-form-page .fields,.ss-form-page .fields>*{min-width:0}
.ss-form-page input,.ss-form-page select,.ss-form-page textarea{max-width:100%}
.ss-form-page .actions{flex-wrap:wrap}
.ss-form-page .public-intro h1{overflow-wrap:anywhere}
.ss-form-island{position:fixed;z-index:150;bottom:calc(12px + env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);padding:6px;border-radius:999px;background:#251528;color:#fffaf3;box-shadow:0 8px 24px #25152830;max-width:calc(100% - 24px)}
.ss-text-dialog{box-sizing:border-box;color:#251528;background:#fffaf3;width:calc(100% - 24px);max-width:32rem;max-height:85dvh;overflow:auto;padding:1.1rem;border:1px solid #cfc5cb;border-radius:20px;font:400 1rem/1.5 system-ui,sans-serif}
.ss-text-dialog::backdrop{background:#25152899}
.ss-text-dialog h2{font:700 1.4rem/1.2 system-ui,sans-serif;margin:0 0 .6rem}
.ss-text-dialog label{display:block;font-weight:700;margin-bottom:.4rem}
.ss-text-dialog select{font:inherit;width:100%;min-height:44px;padding:.5rem;color:inherit;background:white;border:1px solid #8d7c89;border-radius:8px}
.ss-text-dialog p{margin:.6rem 0}
.ss-size-sample{font-size:1.1rem}
.ss-size-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:.9rem}
.ss-size-actions button{font:700 .85rem/1.3 system-ui,sans-serif;min-height:44px;padding:.6rem .8rem;border:1px solid #8d7c89;border-radius:999px;color:#251528;background:white;cursor:pointer}
.ss-size-actions [data-size-close]{background:#251528;color:white}
/* The text control stays reachable while Ask retracts during scrolling. */
body .safety-dock{display:flex;width:min(520px,calc(100vw - 24px));max-width:calc(100vw - 24px);gap:6px;overflow:hidden}
body .safety-dock>.exit,body .safety-dock>.ss-text-button{flex:1;min-width:0}
body .safety-dock>.dock-tools{flex:1.15;min-width:0;width:auto;max-width:300px;transition:flex .3s,max-width .3s,opacity .18s}
body .safety-dock.is-collapsed{width:min(340px,calc(100vw - 24px));gap:4px}
body .safety-dock.is-collapsed>.dock-tools{flex:0;max-width:0;visibility:hidden}
body .safety-dock .dock-action{white-space:normal;line-height:1.25;height:auto}
body .safety-dock .dock-ask-full{display:none}
body .safety-dock .dock-ask-short{display:inline}
body .safety-dock>.ss-text-button{align-self:stretch}
.ss-youth-page .site-header{padding-top:78px}
.ss-youth-page .safety-bar{flex-wrap:wrap;justify-content:center;width:max-content;max-width:calc(100vw - 20px);border-radius:24px}
.ss-youth-page .safety-bar>*{white-space:normal;flex:1;min-width:44px;padding:10px}
.ss-youth-page .safety-bar .ss-text-button{color:#fffaf3}
/* Larger reading sizes need reflow rather than a clipped desktop header. */
html:not([data-text-size="100"]) .header-actions{flex-wrap:wrap}
html:is([data-text-size="150"],[data-text-size="175"],[data-text-size="200"]) .site-header .header-actions{position:relative;top:auto;right:auto;margin-top:90px;max-width:100%;height:auto;justify-content:flex-start}
html:is([data-text-size="150"],[data-text-size="175"],[data-text-size="200"]) .site-header .topbar{height:auto;min-height:90px;flex-wrap:wrap}
html:not([data-text-size="100"]) .hero h1,html:not([data-text-size="100"]) .pathway-tile strong{overflow-wrap:anywhere}
html:not([data-text-size="100"]) .pathway-tile{height:auto;min-height:0}
html:not([data-text-size="100"]) .home-entry{height:auto;min-height:100svh}
html:not([data-text-size="100"]) .reader-excerpt{max-height:none}
html:is([data-text-size="150"],[data-text-size="175"],[data-text-size="200"]) .primary-pathways{flex-wrap:wrap;display:flex}
html:is([data-text-size="150"],[data-text-size="175"],[data-text-size="200"]) .service-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,350px),1fr))}
html:is([data-text-size="150"],[data-text-size="175"],[data-text-size="200"]) .ss-youth-page{padding-bottom:calc(220px + env(safe-area-inset-bottom,0px))}
@media(max-width:700px){
 .ss-text-button{flex-direction:column;gap:1px;padding:6px;font-size:.75rem}
 body .safety-dock{align-items:stretch}
 body .safety-dock .dock-action{font-size:.75rem;padding:8px 5px}
 .ss-form-page .fields{grid-template-columns:1fr}
 html:not([data-text-size="100"]) .topic-grid{grid-template-columns:1fr}
 html:not([data-text-size="100"]) .directory-filter-panel{grid-template-columns:1fr}
 html:is([data-text-size="150"],[data-text-size="175"],[data-text-size="200"]) .pathway-gateway{grid-template-columns:1fr}
}
@media print{.ss-home,.ss-form-island,.ss-text-dialog{display:none!important}}


.form-pathways{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr));gap:.45rem;margin:.5rem 0 1.5rem}.form-pathways a{display:flex;align-items:center;justify-content:center;min-height:44px;text-align:center;padding:.45rem .65rem;border:1px solid #b8c7bf;border-radius:.75rem;color:#153c32;text-decoration:none;background:#fff;overflow-wrap:anywhere}.form-pathways a:focus-visible{outline:3px solid #174c40;outline-offset:2px}.reference-group{border:0;border-top:1px solid #ccd5cf;padding:1rem 0;margin-top:1rem;min-width:0}.private-intake dd{margin:0 0 .6rem;white-space:pre-wrap;overflow-wrap:anywhere}.private-intake dt{font-weight:700}.ss-form-page [hidden]{display:none!important}

/* Keep Home pinned while the four pathways scroll beneath its trailing edge. */
.ss-form-header{position:fixed;top:calc(12px + env(safe-area-inset-top,0px));left:12px;right:12px;z-index:170;display:flex;align-items:flex-start;min-width:0;isolation:isolate}
.ss-form-header .ss-home{position:relative;top:auto;left:auto;z-index:2;flex:0 0 auto;box-sizing:border-box;box-shadow:8px 0 18px #f7f5ef,0 6px 20px #25152820}
.ss-form-header .form-pathways{display:flex;flex:1 1 auto;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;gap:8px;margin:-5px -5px -5px -12px;padding:5px 5px 9px 24px;scroll-padding-inline:24px 5px;scrollbar-width:thin;scrollbar-color:#8d7c89 transparent}
.ss-form-header .form-pathways a{flex:0 0 auto;box-sizing:border-box;min-height:44px;padding:10px 14px;border:1px solid #cfc5cb;border-radius:999px;background:#fff;color:#251528;font:500 .86rem/1.25 system-ui,sans-serif;white-space:nowrap;overflow-wrap:normal;box-shadow:0 4px 12px #25152812}
.ss-form-header .form-pathways a:hover,.ss-form-header .ss-home:hover{background:#fffaf3;border-color:#8d7c89}
.ss-form-header .form-pathways a:focus-visible{outline:3px solid #a8472c;outline-offset:2px}
@media print{.ss-form-header{display:none!important}}
