/* Crayon touches — PLAYGROUND ONLY (see lib/crayon-touches.js). The hand is
   the funding pages' and the Everyday Life Profile's (ADR-0013, ADR-0015):
   these rules are theirs, renamed from fv- to cr- so the five pages that carry
   the originals never meet a second copy. */

/* ---- the crayon ---- */
.cr-crayon{fill:none;stroke-linecap:round;stroke-linejoin:round}
.cr-draw{stroke-dasharray:1;stroke-dashoffset:0}
/* Drawn on as a transition, not an animation: Chrome can leave a finished
   `forwards` animation on an SVG path unpainted. The trigger (.cr-in) sits on
   an element round the <svg>, never on the <svg> itself. */
html.cr-js .cr-draw{stroke-dashoffset:1;transition:stroke-dashoffset 1.3s cubic-bezier(.6,.1,.3,1) .25s}
html.cr-js .cr-draw.d2{transition-delay:.55s}
html.cr-js .cr-in .cr-draw{stroke-dashoffset:0}
/* normalize clips inline SVG (svg:not(:root){overflow:hidden}), site.css makes
   every svg a block that may not outgrow its box; these drawings run past it. */
html[data-crayon] svg.cr-svg:not(:root),
html[data-crayon] svg.cr-dd:not(:root),
html[data-crayon] svg.cr-tick:not(:root){overflow:visible;max-width:none}

/* ---- one line under one phrase of the title (.fv-underline) ---- */
.cr-underline{position:relative;display:inline-block;white-space:nowrap;padding-bottom:.18em}
.cr-underline > svg{position:absolute;left:-2%;bottom:0;width:104%;height:.2em;pointer-events:none}
/* A line stretched wider than its box (preserveAspectRatio="none" with a
   non-scaling stroke) is not drawn with the dash: Chrome measures that dash in
   the unstretched units, so under a wide title it covered half the line and
   left a gap. These lines are wiped on from the left instead — the same
   gesture, the same timing. */
html.cr-js .cr-wipe{clip-path:inset(-80% 100% -80% -6%);transition:clip-path 1.3s cubic-bezier(.6,.1,.3,1) .25s}
html.cr-js .cr-in > .cr-wipe{clip-path:inset(-80% -6% -80% -6%)}
/* Webflow fades most hero titles in; the line waits for the words. */
html.cr-js h1 .cr-wipe{transition-delay:.85s}
/* A long phrase could push a phone's title off the side: there it wraps like
   the rest of the title, and goes without its line. */
@media (max-width:479px){
  h1[data-cr-long] .cr-underline{display:inline;white-space:normal;padding-bottom:0}
  h1[data-cr-long] .cr-underline > svg{display:none}
}

/* ---- the footer's horizon, with the sun coming up behind it ---- */
.cr-horizon{position:relative;height:40px;margin:-18px 0 26px;pointer-events:none}
.cr-horizon-line{position:absolute;left:0;bottom:0;width:100%;height:100%}
html[data-crayon] .cr-horizon svg.cr-horizon-sun{position:absolute;right:12%;bottom:-11px;width:56px;height:56px;clip-path:inset(0 0 50% 0)}
html.cr-js .cr-horizon .cr-horizon-sun{opacity:0;transform:translateY(12px);transition:opacity .6s ease 1.1s,transform 1.1s cubic-bezier(.3,1.2,.5,1) 1.1s}
html.cr-js .cr-horizon.cr-in .cr-horizon-sun{opacity:1;transform:none}
.site-footer .cr-horizon{margin:0 0 30px}
@media (max-width:767px){
  .cr-horizon{height:30px;margin:-10px 0 20px}
  html[data-crayon] .cr-horizon svg.cr-horizon-sun{width:44px;height:44px;bottom:-8px;right:8%}
}

/* ---- doodles round a hero's picture (.fv-doodled / .fv-dd) ---- */
.r-wait,.container-31,.hero-4-image,.hero-2-content-3,.r-hero-ctas,.container-32{position:relative}
.cr-layer{position:absolute;inset:0;pointer-events:none;z-index:30}
.cr-dd{position:absolute;pointer-events:none}
.cr-dd.heart{width:84px}
.cr-dd.star{width:50px}
.cr-dd.star.s2{width:30px}
.cr-dd.sun{width:84px}
html.cr-js .cr-layer .cr-dd{opacity:0;transform:scale(.6) rotate(-10deg);transition:opacity .45s ease .8s,transform .7s cubic-bezier(.3,1.5,.5,1) .8s}
html.cr-js .cr-layer .cr-dd.s2,html.cr-js .cr-layer .cr-dd.heart{transition-delay:1.05s}
html.cr-js .cr-layer.cr-in .cr-dd{opacity:1;transform:none}

.cr-layer--wait .star{right:-22px;top:-24px}
.cr-layer--wait .star.s2{right:36px;top:-30px}
.cr-layer--assessment .star{right:8%;top:4%}
.cr-layer--assessment .heart{left:6%;bottom:6%;width:74px}
.cr-layer--provider .heart{left:-30px;top:-30px;width:74px}
.cr-layer--provider .star.s2{right:-14px;bottom:16%}
.cr-layer--contact .heart{left:2%;top:9%;width:78px}
.cr-layer--contact .star{right:5%;top:56%}

@media (max-width:767px){
  .cr-dd.heart{width:60px}
  .cr-dd.star{width:38px}
  .cr-dd.star.s2{width:24px}
  .cr-dd.sun{width:62px}
  .cr-layer--wait .star{right:-8px;top:-18px}
  .cr-layer--provider .heart{left:-8px;top:auto;bottom:-20px}
  .cr-layer--provider .star.s2{right:-4px}
  .cr-layer--contact .heart{left:0;top:4%}
  .cr-layer--contact .star{right:0}
}

/* ---- crayon ticks in the site's check lists (.fv-tick's path) ---- */
html[data-crayon] svg.cr-tick{color:#1f9e73}
html[data-crayon] .custom-list.in-hero-6 svg.cr-tick,
html[data-crayon] .with-bg-color-1 svg.cr-tick,
html[data-crayon] .with-bg-color-2 svg.cr-tick{color:#94e4c8}

/* ---- c: the arrow from the words to the picture (.el2-arrow) ---- */
.cr-layer--arrow{inset:auto}
.cr-arrow--button{width:clamp(72px,6.4vw,96px);visibility:hidden}
.cr-arrow--button[data-placed]{visibility:visible}
.cr-arrow--home{left:-122px;top:-34px;width:104px}
.cr-arrow{display:block;width:100%;height:auto}
@media (max-width:991px){.cr-layer--arrow{display:none}}

/* ---- c: a small star beside a centred dark hero's eyebrow ---- */
.cr-eyebrow-star{display:inline-block;width:1.25em;margin-left:.45em;vertical-align:-.28em}
.cr-eyebrow-star .cr-dd{position:static;width:100%;height:auto}

/* ================= b2: B's hand spread down each page, varied page to page (lib/crayon-b2.js) */
/* A touch that would share a screen with the one above it is dropped (crayon.js). */
[data-cr-off] > svg,.cr-layer[data-cr-off],.cr-horizon[data-cr-off],.cr-margin[data-cr-off]{display:none}
.cr-hl[data-cr-off]{box-shadow:none!important}
.cr-boxed[data-cr-off]::after{display:none}

/* ---- a circle round a word (.fv-circled, F:349) ---- */
.cr-circled{position:relative;display:inline-block;white-space:nowrap;z-index:0}
.cr-circled > svg{position:absolute;left:-8%;top:-18%;width:116%;height:140%;pointer-events:none;z-index:-1}
html.cr-js h1 .cr-circled > .cr-wipe{transition-delay:.85s}

/* ---- one doodle after a heading's last word ---- */
.cr-nowrap{white-space:nowrap}
.cr-margin{display:inline-block;width:.8em;margin-left:.28em;vertical-align:.18em;line-height:0}
html[data-crayon] .cr-margin svg.cr-dd{position:static;display:inline-block;width:100%;height:auto}
html[data-crayon] .cr-margin svg.cr-dd.kite{width:50%}
html[data-crayon] .cr-margin svg.cr-dd.star{width:76%}
html.cr-js .cr-margin .cr-dd{opacity:0;transform:scale(.6) rotate(-10deg);transition:opacity .45s ease .9s,transform .7s cubic-bezier(.3,1.5,.5,1) .9s}
html.cr-js .cr-margin.cr-in .cr-dd{opacity:1;transform:none}

/* ---- two doodles by a picture: the pair changes page to page (.p1, .p2) ---- */
.cr-dd.moon{width:66px}.cr-dd.shoe{width:88px}.cr-dd.brush{width:76px}.cr-dd.bowl{width:76px}.cr-dd.kite{width:40px}
html[data-crayon="b2"] .cr-layer .cr-dd.star{width:46px}
html.cr-js .cr-layer .cr-dd.p2{transition-delay:1.05s}
figure.w-richtext-figure-type-image{position:relative}
.cr-layer--wait .p1{right:-24px;top:-36px}
.cr-layer--wait .p2{right:84px;top:-40px}
.cr-layer--assessment .p1{right:7%;top:3%}
.cr-layer--assessment .p2{left:5%;bottom:5%}
.cr-layer--provider .p1{left:-30px;top:-32px}
.cr-layer--provider .p2{right:-18px;bottom:14%}
.cr-layer--contact .p1{left:2%;top:8%}
.cr-layer--contact .p2{right:5%;top:54%}
.cr-layer--photo .p1{left:-28px;top:-30px}
.cr-layer--photo .p2{right:-20px;bottom:10%}
@media (max-width:767px){
  .cr-dd.moon{width:50px}.cr-dd.shoe{width:66px}.cr-dd.brush{width:58px}.cr-dd.bowl{width:58px}.cr-dd.kite{width:30px}
  html[data-crayon="b2"] .cr-layer .cr-dd.star{width:36px}
  .cr-layer--wait .p1{right:-6px;top:-22px}.cr-layer--wait .p2{right:60px;top:-26px}
  .cr-layer--provider .p1{left:-6px;top:auto;bottom:-20px}.cr-layer--provider .p2{right:-4px}
  .cr-layer--contact .p1{left:0;top:4%}.cr-layer--contact .p2{right:0}
  .cr-layer--photo .p1{left:-6px;top:-18px}.cr-layer--photo .p2{right:-6px}
}

/* ---- a crayon ring round a round photograph (§3.5) ---- */
.cr-ringed{position:relative;overflow:visible!important}
.cr-ringed > img{border-radius:50%}
.cr-ringed > svg.cr-ring{position:absolute;left:-14%;top:-14%;width:128%;height:128%;pointer-events:none}

/* ---- a drawn box round a card (§3.11: a pseudo-element under the filter) ---- */
.cr-boxed::after{content:"";position:absolute;inset:-7px;border:2.6px solid var(--cr-ink);border-radius:inherit;filter:url(#cr-wax);pointer-events:none;z-index:2}
.cr-ink-gold{--cr-ink:#f3b634}
.cr-ink-navy{--cr-ink:#024275}
html.cr-js .cr-boxed::after{opacity:0;transition:opacity .9s ease .3s}
html.cr-js .cr-boxed.cr-in::after{opacity:1}

/* ---- the arrow toward a button (§3.6b), aimed by crayon.js ---- */
.cr-arrow--to{width:92px;visibility:hidden}
.cr-arrow--to[data-placed]{visibility:visible}

/* ---- the dotted path between three icons (§3.10), laid by crayon.js ---- */
.cr-layer--path{z-index:0}
html[data-crayon] .cr-layer--path svg.cr-svg{position:absolute;left:0;top:0;width:100%;height:100%}
@media (max-width:767px){.cr-layer--path{display:none}}

/* ---- the highlighter (§3.12, E:883) ---- */
.cr-hl{box-shadow:inset 0 -.42em 0 rgba(78,207,162,.55)}
html.cr-js .cr-hl{box-shadow:inset 0 0 0 rgba(78,207,162,.55);transition:box-shadow .9s ease .3s}
html.cr-js .cr-hl.cr-in{box-shadow:inset 0 -.42em 0 rgba(78,207,162,.55)}

/* ---- the footer's scene: a's sun comes up, or a moon, a kite or a heart sits on the line ---- */
html[data-crayon] .cr-horizon--moon svg.cr-horizon-sun{clip-path:none;width:44px;height:44px;bottom:10px}
html[data-crayon] .cr-horizon--heart svg.cr-horizon-sun{clip-path:none;width:40px;height:37px;bottom:8px}
html[data-crayon] .cr-horizon--kite svg.cr-horizon-sun{clip-path:none;width:30px;height:84px;bottom:6px}
@media (max-width:767px){
  html[data-crayon] .cr-horizon--moon svg.cr-horizon-sun{width:36px;height:36px}
  html[data-crayon] .cr-horizon--heart svg.cr-horizon-sun{width:32px;height:30px}
  html[data-crayon] .cr-horizon--kite svg.cr-horizon-sun{width:24px;height:67px}
}

@media (prefers-reduced-motion:reduce){
  html.cr-js .cr-draw,html.cr-js .cr-wipe,html.cr-js .cr-layer .cr-dd,html.cr-js .cr-horizon .cr-horizon-sun,
  html.cr-js .cr-margin .cr-dd,html.cr-js .cr-hl,html.cr-js .cr-boxed::after{transition:none!important}
}
