/* proto.css — prototype-level rules that the HTML kit does not carry. Link after components.css.
   1. Full-bleed surfaces: the kit caps every block at the 1400 canvas; page-level backgrounds must paint
      edge to edge on wide screens while content stays on the canvas. Add client classes to the list as needed. */
body{overflow-x:clip}
.site-header{position:relative;z-index:10}
.notif,.util-nav,.banner--page,.banner--post,.banner--basic,.banner--feature,.banner--image,.banner--hero,.section.bg-light,.section.bg-dark,.grid-section.bg-light,.grid-section.bg-dark,.jump-menu,.footer,.logo-ticker{position:relative;isolation:isolate}
.notif::before,.util-nav::before,.banner--page::before,.banner--post::before,.banner--basic::before,.banner--feature::before,.banner--image::before,.banner--hero::before,.section.bg-light:not([data-ui])::before,.section.bg-dark:not([data-ui])::before,.grid-section.bg-light:not([data-ui])::before,.grid-section.bg-dark:not([data-ui])::before,.jump-menu::before,.footer::before,.logo-ticker::before{content:"";position:absolute;top:0;bottom:0;left:calc(50% - 50vw);right:calc(50% - 50vw);background:inherit;z-index:-1}
.banner--page,.banner--post,.banner--basic,.banner--feature,.banner--image,.banner--hero{overflow:visible}
.banner--hero .banner__bg{left:calc(50% - 50vw);right:calc(50% - 50vw)}
.banner--hero .slide-indicator{right:calc(50% - 50vw + 20px)}
.slider-row--overflow{width:calc(50vw + 50%);max-width:none}/* from the centred container's left edge to the viewport's right edge at every width; 590px (half of 1180) only landed there at 1400+ and scrolled the page sideways between 1025 and 1400 (Ucluelet 2026-11-03) */
.logo-ticker .logo-scroll{width:100vw;max-width:none}
/* 2. .section is a block in the kit; generated sections that set align-items inline expect a flex column */
.section[style*="align-items"]{display:flex;flex-direction:column}
/* 3. Interactive states: every panel/slide is in the markup; kit.js only toggles is-active */
[data-panel-for]:not(.is-active){display:none!important}
[data-panel-for]{transition:opacity .18s ease}
[data-panel-for].is-leaving{opacity:0}
[data-panel-for].is-active{animation:proto-fade .35s ease}
@keyframes proto-fade{from{opacity:0}to{opacity:1}}
[data-slides]:not(.slides--peek) [data-slide-item]:not(.is-active):not(.hero-slide):not(.testimonial__slide){display:none!important}
.hero-slide{display:contents}
/* hero slides glide in from the right; the outgoing one leaves to the left; clip at the viewport edges */
.banner--hero[data-slides]{clip-path:inset(0 calc(50% - 50vw))}
[data-slides] .hero-slide{display:flex;align-items:center;justify-content:flex-start;position:absolute;inset:0;padding:200px var(--page-pad);transform:translateX(100vw);transition:transform .65s cubic-bezier(.4,0,.2,1);z-index:0}
[data-slides] .hero-slide.is-active{transform:translateX(0);z-index:1}
[data-slides] .hero-slide.is-prev{transform:translateX(-100vw)}
[data-slides] .slide-indicator{z-index:2}
[data-autoplay] .slide-indicator__bar .fill{width:0;animation:proto-fill 6s linear forwards}
@keyframes proto-fill{from{width:0}to{width:100%}}
.accordion__bar,.job__bar,.method-card,.tabs-bubble__item,.tabs-underline__item,[data-slide],.gallery-peek .ph-image--side{cursor:pointer}
.job__bar .icon--minus{display:none}
.job.is-open .job__bar .icon--plus{display:none}
.job.is-open .job__bar .icon--minus{display:block}
.job:not(.is-open) .job__body{display:none}
/* 4. Cards: the link sits on the image and the CTA, never around the heading, so headings stay editable */
a.ph-image,a.ph-icon{text-decoration:none}
/* 5. Links inside column stacks size to their text, so the underline is not full width */
.stack > .link-more{align-self:flex-start}
/* 6. Generated image blocks put media first in the DOM; the right-image variant relies on order */
.image-block:not(.image-block--left) .image-block__media{order:1}
/* 7. Accordion rules belong to the item, not the bar, so the bottom rule sits under the open panel */
.accordion__bar{border-bottom:0}
.accordion__item{border-bottom:1px solid var(--c-dark)}
/* sliding slides: hero (full-bleed, 100vw) and testimonial (in a grid track, 100%) */
[data-slides] .hero-slide.is-next{transform:translateX(100vw)}
[data-slides] .hero-slide.from-left{transform:translateX(-100vw)}
.testimonial__track{display:grid;width:100%;overflow:hidden}
.testimonial__slide{grid-area:1/1;transform:translateX(100%);opacity:0;transition:transform .5s cubic-bezier(.4,0,.2,1),opacity .5s}
.testimonial__slide.is-active{transform:none;opacity:1}
.testimonial__slide.is-prev{transform:translateX(-100%);opacity:0}
.testimonial__slide.is-next{transform:translateX(100%);opacity:0}
.testimonial__slide.from-left{transform:translateX(-100%);opacity:0}
/* edit mode (body.proto-editing) pauses autoplay so slides can be edited */
body.proto-editing .slide-indicator__bar .fill{animation-play-state:paused}
/* logo ticker in edit mode: the clones hide, the editable set becomes a row the client scrolls (kit.js adds the arrows) */
body.proto-editing .logo-scroll--animate{overflow-x:auto;scrollbar-width:thin;cursor:grab;padding-block:8px 28px;width:auto;max-width:100%;margin-left:0;align-self:stretch}   /* the page narrows for the edit sidebar: the row fits the page, not the viewport */
body.proto-editing .logo-scroll--animate.is-dragging{cursor:grabbing}
body.proto-editing .logo-scroll--animate .logo-scroll__track{animation:none;transform:none;padding-inline:20px;flex:0 0 auto}
body.proto-editing .logo-scroll__track > .is-clone{display:none}
.logo-ticker__nav{display:none}
body.proto-editing .logo-ticker__nav{display:flex;gap:8px;justify-content:center;align-items:center;margin-top:-8px}
.logo-ticker__nav button{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--c-light);background:var(--c-white);color:var(--c-black);cursor:pointer;padding:0}
.logo-ticker__nav button:hover:not(:disabled){border-color:var(--c-black)}
.logo-ticker__nav button:disabled{opacity:.35;cursor:default}
.logo-ticker__nav button svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2}
.logo-ticker__nav span{font-size:12px;line-height:1.4;text-transform:uppercase;letter-spacing:.06em;color:var(--c-dark);padding-inline:8px}
/* uploaded images (edit layer) fill their placeholder */
.ph-image > img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ph-embed{position:relative;display:flex;align-items:center;justify-content:center;background:var(--c-mid);color:var(--c-white);font-weight:500;font-size:20px;overflow:hidden}   /* embed spot: give it a size per page and a label naming what goes there; the edit layer fills it with the pasted code */
.ph-video{position:relative;background:var(--c-mid);display:flex;align-items:center;justify-content:center;color:var(--c-white);overflow:hidden}   /* video spot: the client gives the YouTube/Vimeo link in edit mode; the player fills it */
.ph-map{position:relative;background:var(--c-mid);display:flex;align-items:center;justify-content:center;color:var(--c-white);font-weight:500;font-size:20px;overflow:hidden}   /* map spot: built with the maps block; the client gives the place and lat/long in edit mode */
.ph-logo{position:relative}
.ph-logo > img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;padding:8px;background:var(--c-white)}
/* rich text blocks (edit layer wraps runs of paragraphs) keep the paragraph rhythm of their container */
.proto-rich{display:block}
.proto-rich > * + *{margin-top:16px}
.proto-rich > * + h4,.proto-rich > * + h5{margin-top:20px}
/* prose containers use the prose rhythm only (p+p 16px, other blocks 20px); the flex gap would double it */
.details.prose,.accordion__item.is-open .accordion__panel.prose{gap:0}
.prose > p:empty,.prose > p > br:only-child{display:block}
/* Thank-you pages (tools/thank-you-pages.js) and the 404 page (tools/not-found-page.js): one section, inside the page padding like any section. */
.thank-you,.not-found{padding-block:120px}
.thank-you .btn-row,.not-found .btn-row{display:flex;gap:16px;flex-wrap:wrap}

/* Legibility over photos: once a banner background holds an image (seeded or uploaded in edit mode) it is darkened to 60%
   (the same result as a 40% black scrim, without a pseudo-element the editor also uses) and the content that follows it turns white, with a white button. Placeholders without an image are untouched. */
.banner__bg > img{filter:brightness(.6)}
/* The photo context sits in :where(), so these weigh one class (.banner__content, .btn--primary): they beat the kit's base rules
   by order and yield to a UI sheet's own banner and button rules (Sacred Heart 2026-10-18: ui.css needed `html body` to beat `:has(> img)`). */
.banner__content:where(.banner__bg:has(> img) ~ *,.banner__bg:has(> img) ~ * *){color:var(--c-white)}
.btn--primary:where(.banner__bg:has(> img) ~ .banner__content *,.banner__bg:has(> img) ~ * .banner__content *){background:var(--c-white);color:var(--c-primary);border-color:var(--c-white)}
.btn--primary:hover:where(.banner__bg:has(> img) ~ .banner__content *,.banner__bg:has(> img) ~ * .banner__content *){background:var(--c-light)}
/* Team slideout motion (kit.js): the bio is a one-row grid that animates 0fr → 1fr with its bottom spacing, so
   the panel and the gap under it grow and shrink together; the caret is absolute and stays outside the clip. */
.team-slideout{display:grid;grid-template-rows:1fr;transition:grid-template-rows .3s ease,padding-bottom .3s ease}
.team-slideout.is-collapsed{grid-template-rows:0fr;padding-bottom:0}
.team-slideout__panel{min-height:0;overflow:hidden;transition:padding .3s ease}
.team-slideout.is-collapsed .team-slideout__panel{padding-top:0;padding-bottom:0}   /* the panel's own padding shrinks with the row, so the row can reach zero */
.team-card__toggle .icon{transition:transform .25s ease}
.team-card__toggle[aria-expanded="true"] .icon{transform:rotate(45deg)}
@media (prefers-reduced-motion:reduce){.team-slideout,.team-card__toggle .icon{transition:none}}
