/* Inner pages, 2026-10-30 (Abraham: "spread out throughout the entirety of the website so it looks modern and uniform"). css/home.css and css/home-fx.css now load on
   every page and body carries .ch-home, so the type, the colours, the buttons, the rows, the steps, the join wall, the facts and the questions are the home's own.
   This file only turns the older templates (site.css: .section, .card, .btn, .prose ...) into the same language: pale ground that moves down the page, one thin
   serif, IBM Plex for everything else, white rows with the one soft shadow, 14 px rounded buttons, centred heads. No navy heads, no paper bands, no italic last word.
   Motion comes from js/neko-fx.js ([data-fx], marked by the templates and by enhance() in lib.mjs) and js/motion.js ([data-rise]). */
.inner-page{--inner-sp:clamp(64px,8vw,112px)}
body.inner-page main{background:linear-gradient(180deg,#fff 0,var(--nk-p0) 9%,var(--nk-p1) 22%,var(--nk-p2) 38%,var(--nk-p1) 52%,var(--nk-p0) 66%,#fff 80%,var(--nk-p0) 92%,var(--nk-p1) 100%);isolation:isolate}
.inner-page .wrap{width:min(100% - 2*var(--nk-gut),var(--nk-max))}
.inner-page .wrap.narrow{max-width:1040px}
.inner-page .section{--sp:var(--inner-sp);position:relative;padding-block:var(--sp);background:none}
.inner-page .section.alt{background:none}
.inner-page .section:has(>.nk-sci){overflow:clip}
.inner-page .section>.wrap{position:relative;z-index:1}
.nk-section:has(>.nk-sci){overflow:clip}
.nk-section:has(>.nk-sci)>.nk-wrap{position:relative;z-index:1}

/* the head of every inner page: on the page's ground, centred, the science behind it, the one photo in a rounded band below */
.nk-ph{--sp:calc(var(--bar) + var(--gl-top) + clamp(26px,3.6vw,52px));position:relative;overflow:clip;padding:var(--sp) 0 clamp(24px,3vw,44px);border:0;background:none;text-align:center}
.nk-ph>.nk-wrap{position:relative;z-index:1}
.nk-ph__in{display:flex;flex-direction:column;align-items:center}
.nk-ph .breadcrumb{order:-1;margin-bottom:clamp(20px,2.6vw,32px);color:var(--nk-ink-2);font-size:15.5px}
.nk-ph .breadcrumb ol{justify-content:center}
.nk-ph .breadcrumb a{color:inherit}
.nk-eyebrow{display:block;margin-bottom:14px;color:var(--nk-blue)}
.nk-ph .nk-h1,.nk-ph__title{max-width:17ch;font-size:clamp(44px,5.8vw,84px);white-space:normal}
.nk-ph .nk-lead{max-width:56ch}
.nk-ph__photo{width:100%;margin-top:clamp(32px,4vw,56px);aspect-ratio:2.5/1;transform-origin:50% 30%}
.nk-ph__photo img{transform:scale(1.08)}
.nk-ph--photo{padding-bottom:0}
@media(max-width:820px){.nk-ph__photo{aspect-ratio:3/2}.nk-ph .breadcrumb{font-size:15px}}
.page-head:not(.nk-ph){padding:calc(var(--bar) + var(--gl-top) + clamp(28px,4vw,56px)) 0 var(--inner-sp);border:0;background:none}

/* type on the older templates */
.inner-page h2,.inner-page h3,.inner-page h4{font-weight:400;letter-spacing:0}
.inner-page .h2{font:400 clamp(36px,4vw,56px)/1.16 var(--nk-serif);letter-spacing:-.012em;color:var(--nk-ink);text-wrap:balance}
.inner-page .h3{font:400 clamp(22px,1.7vw,24px)/1.22 var(--nk-sans);letter-spacing:-.006em;color:var(--nk-ink)}
.inner-page .h4{font:400 clamp(20px,1.5vw,22px)/1.25 var(--nk-sans);color:var(--nk-ink)}
.inner-page .label,.inner-page .tag,.inner-page .specimen figcaption{font:500 14px/1.3 var(--nk-sans);letter-spacing:.09em}
.inner-page .label{color:var(--nk-ink-2)}
.inner-page .prose p,.inner-page .study p,.inner-page .step p,.inner-page .specialty-card p,.inner-page .values-grid .card p,.inner-page .callout p,.inner-page .study-empty p,.inner-page .study-block p,.inner-page .service p{color:var(--nk-ink-2);font-size:18px;line-height:1.55}
.inner-page .reading{max-width:760px;margin-inline:auto}
.inner-page .reading h2{margin-bottom:clamp(20px,2.4vw,30px);text-align:center}
.inner-page .section-head{text-align:center}
.nk-inner-center{text-align:center}

/* buttons and links: the home's */
.inner-page main .btn{min-height:60px;padding:14px 26px;border:0;border-radius:14px;background:var(--nk-blue);box-shadow:none;color:#fff;font:500 17px/1.2 var(--nk-sans);letter-spacing:0;transition:background-color .2s var(--e),transform .12s var(--e)}
.inner-page main .btn:active{transform:scale(.97)}
.inner-page main .btn-ghost{background:#fff;color:var(--nk-ink);box-shadow:inset 0 0 0 1px rgba(32,40,46,.12)}
.inner-page main .btn-sm{min-height:48px;padding:10px 20px;font-size:16px}
.inner-page main .btn svg{width:20px;height:20px}
.inner-page main .text-link{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:var(--nk-blue);font-weight:500;text-decoration:none}
.inner-page main p>.text-link{display:inline;min-height:0;text-decoration:underline;text-decoration-color:rgba(43,72,152,.35);text-underline-offset:3px}
.inner-page main p.study-registry>.text-link,.inner-page main p.center>.text-link,.inner-page main .fact a.text-link{display:inline-flex;min-height:44px;text-decoration:none}
@media(hover:hover){.inner-page main .btn:hover{background:#223C82}.inner-page main .btn-ghost:hover{background:var(--nk-p0)}.inner-page main .text-link:hover{text-decoration:underline;text-underline-offset:4px}}
.inner-page .cta-row{margin-top:30px}

/* cards: white on the pale ground, the one soft shadow the page allows */
.inner-page .card{padding:clamp(24px,3vw,34px);border-radius:20px;background:#fff;box-shadow:0 1px 2px rgba(43,72,152,.05),0 10px 30px rgba(43,72,152,.05);transition:transform .38s var(--e),box-shadow .38s var(--e)}
.inner-page .panel{border-radius:clamp(28px,3vw,36px);box-shadow:0 1px 2px rgba(43,72,152,.05),0 18px 50px rgba(43,72,152,.07)}
@media(hover:hover){.inner-page a.specialty-card:hover,.inner-page .study:hover{transform:translateY(-2px);box-shadow:0 1px 2px rgba(43,72,152,.06),0 20px 44px rgba(43,72,152,.11)}}
.inner-page .callout{max-width:760px;margin-inline:auto}
.inner-page .study-empty{max-width:760px}

/* photos and the clay renders: a rounded frame, no shadow. The renders keep moving on their own, the way the home's research tiles do */
.inner-page .illus-thumb{overflow:hidden;border-radius:15px;background:var(--nk-p1)}
.inner-page .image-led{gap:clamp(32px,6vw,88px)}
.inner-page .image-led .illus-thumb{aspect-ratio:4/3;border-radius:clamp(28px,3vw,40px)}
.inner-page .image-led .prose .h2{font-size:clamp(34px,3.4vw,50px)}
.inner-page .area-about{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}
.inner-page .specialty-card .illus-thumb,.inner-page .area-about .illus-thumb{isolation:isolate;aspect-ratio:3/2}
.inner-page .specialty-card .illus-thumb picture,.inner-page .area-about .illus-thumb picture{position:absolute;inset:0;animation:nk-tile 10s ease-in-out infinite;animation-delay:calc(var(--i,0)*-1.7s)}
.inner-page .specialty-card .illus-thumb:after,.inner-page .area-about .illus-thumb:after{content:"";position:absolute;inset:-30%;z-index:1;pointer-events:none;background:linear-gradient(105deg,rgba(255,255,255,0) 42%,rgba(255,255,255,.32) 50%,rgba(255,255,255,0) 58%);transform:translate3d(-80%,0,0);animation:nk-glaze 9s ease-in-out infinite;animation-delay:calc(var(--i,0)*-1.1s)}
.inner-page .specimen{margin:0;padding:0;border-radius:0;background:none;box-shadow:none}
.inner-page .specimen .frame{border-radius:clamp(24px,2.6vw,32px);background:var(--nk-p1)}
.inner-page .specimen figcaption{padding:14px 6px 0;color:var(--nk-ink-2)}
.inner-page .gallery-grid{gap:clamp(20px,2.4vw,32px)}

/* grids */
.inner-page .studies{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:16px}
.inner-page .studies:has(>:only-child){max-width:560px;margin-inline:auto}
.inner-page .study{gap:14px}
.study .illus-thumb{aspect-ratio:16/9;margin-bottom:6px}
.inner-page .study .h3{font-size:clamp(22px,1.7vw,24px)}
.inner-page .tags{gap:8px}
.inner-page .tag{min-height:34px;padding:0 13px;border:0;background:var(--nk-p1);color:var(--nk-ink)}
.inner-page main .tag{padding-block:6px}
.inner-page .condition-chips{gap:10px}
.inner-page .condition-chips .tag{min-height:44px;padding:0 20px;background:#fff;box-shadow:0 1px 2px rgba(43,72,152,.05),0 10px 30px rgba(43,72,152,.05)}
.inner-page .specialty-grid{gap:16px}
.inner-page .specialty-card{gap:14px;padding:12px 12px 22px;color:inherit}
.inner-page .specialty-card .h3,.inner-page .specialty-card p,.inner-page .specialty-card .text-link{margin-inline:12px}
.inner-page .areas{gap:10px;justify-content:center;max-width:none;margin-inline:auto}
.inner-page .areas a{min-height:52px;padding:0 22px;border:0;border-radius:14px;background:#fff;box-shadow:0 1px 2px rgba(43,72,152,.05),0 10px 30px rgba(43,72,152,.05);font:400 17px/1 var(--nk-sans);transition:transform .3s var(--e),box-shadow .3s var(--e),color .3s var(--e)}
@media(hover:hover){.inner-page .areas a:hover{color:var(--nk-blue);transform:translateY(-2px)}}
.inner-page .steps{gap:16px}
.inner-page .step .n{display:block;width:auto;height:auto;box-shadow:none;color:var(--nk-blue);font:400 40px/1 var(--nk-serif)}
.inner-page .step .h4{margin:12px 0 8px}
.inner-page .participation-steps{max-width:none}
.inner-page .checklist{gap:13px}
.inner-page .checklist li{grid-template-columns:22px 1fr;gap:12px;color:var(--nk-ink-2)}
.inner-page .checklist .ic{color:var(--nk-blue)}
.inner-page .values-title{margin:0 0 22px;text-align:center}
.inner-page .values-grid{gap:16px}
.inner-page .values-grid .card{padding:clamp(24px,2.6vw,30px)}
.inner-page .values-grid .h4{margin-bottom:0}
.inner-page .services{gap:16px}
.inner-page .service{padding:8px;border-radius:24px;background:#fff;box-shadow:0 1px 2px rgba(43,72,152,.05),0 10px 30px rgba(43,72,152,.05)}
.inner-page .service .frame.art{border-radius:18px;background:var(--nk-p0);box-shadow:none}
.inner-page .service .body{padding:16px 12px 18px}
.inner-page .service p{font-size:17px}
.inner-page .protocol-list{display:grid;gap:12px;max-width:860px;margin-inline:auto}
.inner-page .protocol-list li,.inner-page .protocol-list li:first-child{padding:20px 26px 20px 30px;border:0;border-radius:20px;background:#fff;box-shadow:0 1px 2px rgba(43,72,152,.05),0 10px 30px rgba(43,72,152,.05)}
.inner-page .protocol-list .label{margin-top:6px}
.inner-page .protocol-list .h4 a{text-decoration:none}

/* contact and the forms: the look of the home's form, same fields and behaviour */
.inner-page .contact{gap:clamp(32px,5vw,80px)}
.inner-page .fact{grid-template-columns:24px 1fr;gap:14px}
.inner-page .fact b{font:500 19px/1.35 var(--nk-sans);letter-spacing:0}
.inner-page .fact b a{text-decoration:none}
.inner-page .fact span{color:var(--nk-ink-2);font-size:17px}
.inner-page .field label,.inner-page .field legend{font:500 16px/1.3 var(--nk-sans)}
.inner-page .field .req{font-weight:400}
.inner-page .input,.inner-page .textarea,.inner-page .select{border:1px solid rgba(32,40,46,.24);border-radius:14px;background:#fff;font:400 17px/1.4 var(--nk-sans)}
.inner-page .input:focus,.inner-page .textarea:focus{border-color:var(--nk-blue);box-shadow:0 0 0 3px rgba(43,72,152,.16)}
.inner-page .choice span{min-height:50px;border-radius:14px;border:1px solid rgba(32,40,46,.24);font:400 17px/1 var(--nk-sans)}
.inner-page .choice input:checked+span{border-color:var(--nk-blue);box-shadow:inset 0 0 0 1px var(--nk-blue)}
.inner-page .choice input:checked+span:before{box-shadow:inset 0 0 0 5px var(--nk-blue)}
.inner-page .form-foot .small{font-size:15.5px}
.inner-page .form-panel{max-width:760px;margin-inline:auto}

/* study pages */
.inner-page .study-detail{gap:clamp(28px,4vw,64px)}
.inner-page .study-sidebar{gap:16px}
.inner-page .study-block .h3{font-size:clamp(24px,2vw,28px)}
.inner-page .study-location address{color:var(--nk-ink-2)}
.inner-page .card-top .ic{width:22px;height:22px;color:var(--nk-blue)}
@media(min-width:1041px){.study-sidebar{position:sticky;top:calc(var(--bar) + 24px);align-self:start}}

/* legal: one calm reading column */
.inner-page .legal-copy{max-width:760px;color:var(--nk-ink-2)}
.inner-page .legal-copy h2{font:400 clamp(30px,3vw,38px)/1.2 var(--nk-serif);color:var(--nk-ink)}
.inner-page .legal-copy h3{font:400 clamp(22px,1.7vw,24px)/1.25 var(--nk-sans);color:var(--nk-ink)}
.inner-page .legal-copy a{color:var(--nk-blue)}
.inner-page .legal-callout,.inner-page .legal-contact-box{border-radius:20px;background:#fff;box-shadow:0 1px 2px rgba(43,72,152,.05),0 10px 30px rgba(43,72,152,.05)}
.inner-page .legal-copy th{background:var(--nk-p1)}
.inner-page .legal-copy th,.inner-page .legal-copy td{border-color:var(--nk-hair)}
.inner-page .legal-copy{position:relative}

/* the pieces shared with the home that sit a little differently on an inner page */
.inner-page .nk-steps{background:transparent}
.inner-page .nk-steps .nk-steps__stage{background:#fff}
.inner-page .nk-steps__side .nk-eyebrow{margin-bottom:12px}
.inner-page .nk-facts{grid-template-columns:repeat(3,minmax(0,1fr));max-width:1040px;margin:0 auto}
@media(max-width:760px){.inner-page .nk-facts{grid-template-columns:minmax(0,1fr)}}
.inner-page .nk-people{margin-top:0}

@media(max-width:860px){
.inner-page .area-about,.inner-page .image-led{grid-template-columns:minmax(0,1fr)}
.inner-page .protocol-list li,.inner-page .protocol-list li:first-child{padding:20px}
}
@media(prefers-reduced-motion:reduce){.inner-page *,.inner-page *:before,.inner-page *:after{animation:none!important;transition:none!important}.inner-page [data-rise]{opacity:1!important}.inner-page .illus-thumb:after{display:none}}
